Accepting new baselines.
This commit is contained in:
parent
5fdc908a36
commit
314a0d6cf0
|
@ -73,6 +73,6 @@ declare function b1(): typeof b1;
|
|||
declare function foo(): typeof foo;
|
||||
declare var foo1: typeof foo;
|
||||
declare var foo2: typeof foo;
|
||||
declare var foo3: any;
|
||||
declare var x: any;
|
||||
declare var foo3: () => any;
|
||||
declare var x: () => any;
|
||||
declare function foo5(x: number): (x: number) => number;
|
||||
|
|
|
@ -54,18 +54,18 @@ var foo2 = foo;
|
|||
>foo : () => typeof foo
|
||||
|
||||
var foo3 = function () {
|
||||
>foo3 : any
|
||||
>foo3 : () => any
|
||||
>function () { return foo3;} : () => any
|
||||
|
||||
return foo3;
|
||||
>foo3 : any
|
||||
>foo3 : () => any
|
||||
}
|
||||
var x = () => {
|
||||
>x : any
|
||||
>x : () => any
|
||||
>() => { return x;} : () => any
|
||||
|
||||
return x;
|
||||
>x : any
|
||||
>x : () => any
|
||||
}
|
||||
|
||||
function foo5(x: number) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
==== tests/cases/compiler/defaultArgsForwardReferencing.ts (12 errors) ====
|
||||
==== tests/cases/compiler/defaultArgsForwardReferencing.ts (10 errors) ====
|
||||
function left(a, b = a, c = b) {
|
||||
a;
|
||||
b;
|
||||
|
@ -37,11 +37,7 @@
|
|||
}
|
||||
|
||||
function defaultArgFunction(a = function () { return b; }, b = 1) { }
|
||||
~
|
||||
!!! Initializer of parameter 'a' cannot reference identifier 'b' declared after it.
|
||||
function defaultArgArrow(a = () => () => b, b = 3) { }
|
||||
~
|
||||
!!! Initializer of parameter 'a' cannot reference identifier 'b' declared after it.
|
||||
|
||||
class C {
|
||||
constructor(a = b, b = 1) { }
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
=== tests/cases/compiler/namedFunctionExpressionCall.ts ===
|
||||
var recurser = function foo() {
|
||||
>recurser : any
|
||||
>recurser : () => void
|
||||
>function foo() { // using the local name foo(); // using the globally visible name recurser();} : () => void
|
||||
>foo : () => void
|
||||
|
||||
|
@ -11,8 +11,8 @@ var recurser = function foo() {
|
|||
|
||||
// using the globally visible name
|
||||
recurser();
|
||||
>recurser() : any
|
||||
>recurser : any
|
||||
>recurser() : void
|
||||
>recurser : () => void
|
||||
|
||||
};
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
==== tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserStatementIsNotAMemberVariableDeclaration1.ts (1 errors) ====
|
||||
==== tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserStatementIsNotAMemberVariableDeclaration1.ts (2 errors) ====
|
||||
return {
|
||||
~~~~~~
|
||||
!!! A 'return' statement can only be used within a function body.
|
||||
|
@ -7,6 +7,8 @@
|
|||
|
||||
// 'private' should not be considered a member variable here.
|
||||
private[key] = value;
|
||||
~~~~~~~
|
||||
!!! Cannot find name 'private'.
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -69,10 +69,10 @@ var b4 = (!b4) && b4; // expected boolean here. actually 'any'
|
|||
|
||||
// (x:string) => any
|
||||
var f = (x: string) => f(x);
|
||||
>f : any
|
||||
>f : (x: string) => any
|
||||
>(x: string) => f(x) : (x: string) => any
|
||||
>x : string
|
||||
>f(x) : any
|
||||
>f : any
|
||||
>f : (x: string) => any
|
||||
>x : string
|
||||
|
||||
|
|
|
@ -601,7 +601,7 @@ $('#underscore_button').bind('click', buttonView.onClick);
|
|||
>onClick : () => void
|
||||
|
||||
var fibonacci = _.memoize(function (n) {
|
||||
>fibonacci : any
|
||||
>fibonacci : (n: any) => any
|
||||
>_.memoize(function (n) { return n < 2 ? n : fibonacci(n - 1) + fibonacci(n - 2);}) : (n: any) => any
|
||||
>_.memoize : <T extends Function>(func: T, hashFunction?: Function) => T
|
||||
>_ : Underscore.Static
|
||||
|
@ -616,11 +616,11 @@ var fibonacci = _.memoize(function (n) {
|
|||
>n : any
|
||||
>fibonacci(n - 1) + fibonacci(n - 2) : any
|
||||
>fibonacci(n - 1) : any
|
||||
>fibonacci : any
|
||||
>fibonacci : (n: any) => any
|
||||
>n - 1 : number
|
||||
>n : any
|
||||
>fibonacci(n - 2) : any
|
||||
>fibonacci : any
|
||||
>fibonacci : (n: any) => any
|
||||
>n - 2 : number
|
||||
>n : any
|
||||
|
||||
|
|
Loading…
Reference in a new issue