Skip to content

Commit 314a0d6

Browse files
committed
Accepting new baselines.
1 parent 5fdc908 commit 314a0d6

7 files changed

+18
-20
lines changed

tests/baselines/reference/declFileTypeofFunction.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,6 @@ declare function b1(): typeof b1;
7373
declare function foo(): typeof foo;
7474
declare var foo1: typeof foo;
7575
declare var foo2: typeof foo;
76-
declare var foo3: any;
77-
declare var x: any;
76+
declare var foo3: () => any;
77+
declare var x: () => any;
7878
declare function foo5(x: number): (x: number) => number;

tests/baselines/reference/declFileTypeofFunction.types

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,18 +54,18 @@ var foo2 = foo;
5454
>foo : () => typeof foo
5555

5656
var foo3 = function () {
57-
>foo3 : any
57+
>foo3 : () => any
5858
>function () { return foo3;} : () => any
5959

6060
return foo3;
61-
>foo3 : any
61+
>foo3 : () => any
6262
}
6363
var x = () => {
64-
>x : any
64+
>x : () => any
6565
>() => { return x;} : () => any
6666

6767
return x;
68-
>x : any
68+
>x : () => any
6969
}
7070

7171
function foo5(x: number) {

tests/baselines/reference/defaultArgsForwardReferencing.errors.txt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
==== tests/cases/compiler/defaultArgsForwardReferencing.ts (12 errors) ====
1+
==== tests/cases/compiler/defaultArgsForwardReferencing.ts (10 errors) ====
22
function left(a, b = a, c = b) {
33
a;
44
b;
@@ -37,11 +37,7 @@
3737
}
3838

3939
function defaultArgFunction(a = function () { return b; }, b = 1) { }
40-
~
41-
!!! Initializer of parameter 'a' cannot reference identifier 'b' declared after it.
4240
function defaultArgArrow(a = () => () => b, b = 3) { }
43-
~
44-
!!! Initializer of parameter 'a' cannot reference identifier 'b' declared after it.
4541

4642
class C {
4743
constructor(a = b, b = 1) { }

tests/baselines/reference/namedFunctionExpressionCall.types

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
=== tests/cases/compiler/namedFunctionExpressionCall.ts ===
22
var recurser = function foo() {
3-
>recurser : any
3+
>recurser : () => void
44
>function foo() { // using the local name foo(); // using the globally visible name recurser();} : () => void
55
>foo : () => void
66

@@ -11,8 +11,8 @@ var recurser = function foo() {
1111

1212
// using the globally visible name
1313
recurser();
14-
>recurser() : any
15-
>recurser : any
14+
>recurser() : void
15+
>recurser : () => void
1616

1717
};
1818

tests/baselines/reference/parserStatementIsNotAMemberVariableDeclaration1.errors.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
==== tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserStatementIsNotAMemberVariableDeclaration1.ts (1 errors) ====
1+
==== tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserStatementIsNotAMemberVariableDeclaration1.ts (2 errors) ====
22
return {
33
~~~~~~
44
!!! A 'return' statement can only be used within a function body.
@@ -7,6 +7,8 @@
77

88
// 'private' should not be considered a member variable here.
99
private[key] = value;
10+
~~~~~~~
11+
!!! Cannot find name 'private'.
1012

1113
}
1214

tests/baselines/reference/recursiveInitializer.types

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,10 @@ var b4 = (!b4) && b4; // expected boolean here. actually 'any'
6969

7070
// (x:string) => any
7171
var f = (x: string) => f(x);
72-
>f : any
72+
>f : (x: string) => any
7373
>(x: string) => f(x) : (x: string) => any
7474
>x : string
7575
>f(x) : any
76-
>f : any
76+
>f : (x: string) => any
7777
>x : string
7878

tests/baselines/reference/underscoreTest1.types

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ $('#underscore_button').bind('click', buttonView.onClick);
601601
>onClick : () => void
602602

603603
var fibonacci = _.memoize(function (n) {
604-
>fibonacci : any
604+
>fibonacci : (n: any) => any
605605
>_.memoize(function (n) { return n < 2 ? n : fibonacci(n - 1) + fibonacci(n - 2);}) : (n: any) => any
606606
>_.memoize : <T extends Function>(func: T, hashFunction?: Function) => T
607607
>_ : Underscore.Static
@@ -616,11 +616,11 @@ var fibonacci = _.memoize(function (n) {
616616
>n : any
617617
>fibonacci(n - 1) + fibonacci(n - 2) : any
618618
>fibonacci(n - 1) : any
619-
>fibonacci : any
619+
>fibonacci : (n: any) => any
620620
>n - 1 : number
621621
>n : any
622622
>fibonacci(n - 2) : any
623-
>fibonacci : any
623+
>fibonacci : (n: any) => any
624624
>n - 2 : number
625625
>n : any
626626

0 commit comments

Comments
 (0)