Skip to content

Commit 4df3d27

Browse files
Accepted baselines.
1 parent 3cf9eca commit 4df3d27

27 files changed

+295
-226
lines changed

tests/baselines/reference/argumentsObjectIterator01_ES6.errors.txt

Lines changed: 0 additions & 14 deletions
This file was deleted.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
=== tests/cases/compiler/argumentsObjectIterator01_ES6.ts ===
2+
3+
function doubleAndReturnAsArray(x: number, y: number, z: number): [number, number, number] {
4+
>doubleAndReturnAsArray : Symbol(doubleAndReturnAsArray, Decl(argumentsObjectIterator01_ES6.ts, 0, 0))
5+
>x : Symbol(x, Decl(argumentsObjectIterator01_ES6.ts, 1, 32))
6+
>y : Symbol(y, Decl(argumentsObjectIterator01_ES6.ts, 1, 42))
7+
>z : Symbol(z, Decl(argumentsObjectIterator01_ES6.ts, 1, 53))
8+
9+
let result = [];
10+
>result : Symbol(result, Decl(argumentsObjectIterator01_ES6.ts, 2, 7))
11+
12+
for (let arg of arguments) {
13+
>arg : Symbol(arg, Decl(argumentsObjectIterator01_ES6.ts, 3, 12))
14+
>arguments : Symbol(arguments)
15+
16+
result.push(arg + arg);
17+
>result.push : Symbol(Array.push, Decl(lib.d.ts, 1016, 29))
18+
>result : Symbol(result, Decl(argumentsObjectIterator01_ES6.ts, 2, 7))
19+
>push : Symbol(Array.push, Decl(lib.d.ts, 1016, 29))
20+
>arg : Symbol(arg, Decl(argumentsObjectIterator01_ES6.ts, 3, 12))
21+
>arg : Symbol(arg, Decl(argumentsObjectIterator01_ES6.ts, 3, 12))
22+
}
23+
return <[any, any, any]>result;
24+
>result : Symbol(result, Decl(argumentsObjectIterator01_ES6.ts, 2, 7))
25+
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
=== tests/cases/compiler/argumentsObjectIterator01_ES6.ts ===
2+
3+
function doubleAndReturnAsArray(x: number, y: number, z: number): [number, number, number] {
4+
>doubleAndReturnAsArray : (x: number, y: number, z: number) => [number, number, number]
5+
>x : number
6+
>y : number
7+
>z : number
8+
9+
let result = [];
10+
>result : any[]
11+
>[] : undefined[]
12+
13+
for (let arg of arguments) {
14+
>arg : any
15+
>arguments : IArguments
16+
17+
result.push(arg + arg);
18+
>result.push(arg + arg) : number
19+
>result.push : (...items: any[]) => number
20+
>result : any[]
21+
>push : (...items: any[]) => number
22+
>arg + arg : any
23+
>arg : any
24+
>arg : any
25+
}
26+
return <[any, any, any]>result;
27+
><[any, any, any]>result : [any, any, any]
28+
>result : any[]
29+
}

tests/baselines/reference/argumentsObjectIterator02_ES6.types

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ function doubleAndReturnAsArray(x: number, y: number, z: number): [number, numbe
77
>z : number
88

99
let blah = arguments[Symbol.iterator];
10-
>blah : any
11-
>arguments[Symbol.iterator] : any
10+
>blah : () => IterableIterator<any>
11+
>arguments[Symbol.iterator] : () => IterableIterator<any>
1212
>arguments : IArguments
1313
>Symbol.iterator : symbol
1414
>Symbol : SymbolConstructor
@@ -20,8 +20,8 @@ function doubleAndReturnAsArray(x: number, y: number, z: number): [number, numbe
2020

2121
for (let arg of blah()) {
2222
>arg : any
23-
>blah() : any
24-
>blah : any
23+
>blah() : IterableIterator<any>
24+
>blah : () => IterableIterator<any>
2525

2626
result.push(arg + arg);
2727
>result.push(arg + arg) : number

tests/baselines/reference/argumentsObjectIterator03_ES6.errors.txt

Lines changed: 0 additions & 14 deletions
This file was deleted.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
=== tests/cases/compiler/argumentsObjectIterator03_ES6.ts ===
2+
3+
function asReversedTuple(a: number, b: string, c: boolean): [boolean, string, number] {
4+
>asReversedTuple : Symbol(asReversedTuple, Decl(argumentsObjectIterator03_ES6.ts, 0, 0))
5+
>a : Symbol(a, Decl(argumentsObjectIterator03_ES6.ts, 1, 25))
6+
>b : Symbol(b, Decl(argumentsObjectIterator03_ES6.ts, 1, 35))
7+
>c : Symbol(c, Decl(argumentsObjectIterator03_ES6.ts, 1, 46))
8+
9+
let [x, y, z] = arguments;
10+
>x : Symbol(x, Decl(argumentsObjectIterator03_ES6.ts, 2, 9))
11+
>y : Symbol(y, Decl(argumentsObjectIterator03_ES6.ts, 2, 11))
12+
>z : Symbol(z, Decl(argumentsObjectIterator03_ES6.ts, 2, 14))
13+
>arguments : Symbol(arguments)
14+
15+
return [z, y, x];
16+
>z : Symbol(z, Decl(argumentsObjectIterator03_ES6.ts, 2, 14))
17+
>y : Symbol(y, Decl(argumentsObjectIterator03_ES6.ts, 2, 11))
18+
>x : Symbol(x, Decl(argumentsObjectIterator03_ES6.ts, 2, 9))
19+
}
20+
21+
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
=== tests/cases/compiler/argumentsObjectIterator03_ES6.ts ===
2+
3+
function asReversedTuple(a: number, b: string, c: boolean): [boolean, string, number] {
4+
>asReversedTuple : (a: number, b: string, c: boolean) => [boolean, string, number]
5+
>a : number
6+
>b : string
7+
>c : boolean
8+
9+
let [x, y, z] = arguments;
10+
>x : any
11+
>y : any
12+
>z : any
13+
>arguments : IArguments
14+
15+
return [z, y, x];
16+
>[z, y, x] : [any, any, any]
17+
>z : any
18+
>y : any
19+
>x : any
20+
}
21+
22+

tests/baselines/reference/arrayLiterals2ES6.symbols

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ interface myArray2 extends Array<Number|String> { }
7979
>myArray2 : Symbol(myArray2, Decl(arrayLiterals2ES6.ts, 42, 43))
8080
>Array : Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11), Decl(lib.d.ts, 1439, 1))
8181
>Number : Symbol(Number, Decl(lib.d.ts, 456, 40), Decl(lib.d.ts, 518, 11))
82-
>String : Symbol(String, Decl(lib.d.ts, 275, 1), Decl(lib.d.ts, 443, 11), Decl(lib.d.ts, 1538, 1))
82+
>String : Symbol(String, Decl(lib.d.ts, 275, 1), Decl(lib.d.ts, 443, 11), Decl(lib.d.ts, 1543, 1))
8383

8484
var d0 = [1, true, ...temp, ]; // has type (string|number|boolean)[]
8585
>d0 : Symbol(d0, Decl(arrayLiterals2ES6.ts, 44, 3))

tests/baselines/reference/destructuringParameterDeclaration3ES5.symbols

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@
99
type arrayString = Array<String>
1010
>arrayString : Symbol(arrayString, Decl(destructuringParameterDeclaration3ES5.ts, 0, 0))
1111
>Array : Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11), Decl(lib.d.ts, 1439, 1))
12-
>String : Symbol(String, Decl(lib.d.ts, 275, 1), Decl(lib.d.ts, 443, 11), Decl(lib.d.ts, 1538, 1))
12+
>String : Symbol(String, Decl(lib.d.ts, 275, 1), Decl(lib.d.ts, 443, 11), Decl(lib.d.ts, 1543, 1))
1313

1414
type someArray = Array<String> | number[];
1515
>someArray : Symbol(someArray, Decl(destructuringParameterDeclaration3ES5.ts, 7, 32))
1616
>Array : Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11), Decl(lib.d.ts, 1439, 1))
17-
>String : Symbol(String, Decl(lib.d.ts, 275, 1), Decl(lib.d.ts, 443, 11), Decl(lib.d.ts, 1538, 1))
17+
>String : Symbol(String, Decl(lib.d.ts, 275, 1), Decl(lib.d.ts, 443, 11), Decl(lib.d.ts, 1543, 1))
1818

1919
type stringOrNumArray = Array<String|Number>;
2020
>stringOrNumArray : Symbol(stringOrNumArray, Decl(destructuringParameterDeclaration3ES5.ts, 8, 42))
2121
>Array : Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11), Decl(lib.d.ts, 1439, 1))
22-
>String : Symbol(String, Decl(lib.d.ts, 275, 1), Decl(lib.d.ts, 443, 11), Decl(lib.d.ts, 1538, 1))
22+
>String : Symbol(String, Decl(lib.d.ts, 275, 1), Decl(lib.d.ts, 443, 11), Decl(lib.d.ts, 1543, 1))
2323
>Number : Symbol(Number, Decl(lib.d.ts, 456, 40), Decl(lib.d.ts, 518, 11))
2424

2525
function a1(...x: (number|string)[]) { }
@@ -34,7 +34,7 @@ function a3(...a: Array<String>) { }
3434
>a3 : Symbol(a3, Decl(destructuringParameterDeclaration3ES5.ts, 12, 21))
3535
>a : Symbol(a, Decl(destructuringParameterDeclaration3ES5.ts, 13, 12))
3636
>Array : Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11), Decl(lib.d.ts, 1439, 1))
37-
>String : Symbol(String, Decl(lib.d.ts, 275, 1), Decl(lib.d.ts, 443, 11), Decl(lib.d.ts, 1538, 1))
37+
>String : Symbol(String, Decl(lib.d.ts, 275, 1), Decl(lib.d.ts, 443, 11), Decl(lib.d.ts, 1543, 1))
3838

3939
function a4(...a: arrayString) { }
4040
>a4 : Symbol(a4, Decl(destructuringParameterDeclaration3ES5.ts, 13, 36))

tests/baselines/reference/destructuringParameterDeclaration3ES6.symbols

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@
99
type arrayString = Array<String>
1010
>arrayString : Symbol(arrayString, Decl(destructuringParameterDeclaration3ES6.ts, 0, 0))
1111
>Array : Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11), Decl(lib.d.ts, 1439, 1))
12-
>String : Symbol(String, Decl(lib.d.ts, 275, 1), Decl(lib.d.ts, 443, 11), Decl(lib.d.ts, 1538, 1))
12+
>String : Symbol(String, Decl(lib.d.ts, 275, 1), Decl(lib.d.ts, 443, 11), Decl(lib.d.ts, 1543, 1))
1313

1414
type someArray = Array<String> | number[];
1515
>someArray : Symbol(someArray, Decl(destructuringParameterDeclaration3ES6.ts, 7, 32))
1616
>Array : Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11), Decl(lib.d.ts, 1439, 1))
17-
>String : Symbol(String, Decl(lib.d.ts, 275, 1), Decl(lib.d.ts, 443, 11), Decl(lib.d.ts, 1538, 1))
17+
>String : Symbol(String, Decl(lib.d.ts, 275, 1), Decl(lib.d.ts, 443, 11), Decl(lib.d.ts, 1543, 1))
1818

1919
type stringOrNumArray = Array<String|Number>;
2020
>stringOrNumArray : Symbol(stringOrNumArray, Decl(destructuringParameterDeclaration3ES6.ts, 8, 42))
2121
>Array : Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11), Decl(lib.d.ts, 1439, 1))
22-
>String : Symbol(String, Decl(lib.d.ts, 275, 1), Decl(lib.d.ts, 443, 11), Decl(lib.d.ts, 1538, 1))
22+
>String : Symbol(String, Decl(lib.d.ts, 275, 1), Decl(lib.d.ts, 443, 11), Decl(lib.d.ts, 1543, 1))
2323
>Number : Symbol(Number, Decl(lib.d.ts, 456, 40), Decl(lib.d.ts, 518, 11))
2424

2525
function a1(...x: (number|string)[]) { }
@@ -34,7 +34,7 @@ function a3(...a: Array<String>) { }
3434
>a3 : Symbol(a3, Decl(destructuringParameterDeclaration3ES6.ts, 12, 21))
3535
>a : Symbol(a, Decl(destructuringParameterDeclaration3ES6.ts, 13, 12))
3636
>Array : Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11), Decl(lib.d.ts, 1439, 1))
37-
>String : Symbol(String, Decl(lib.d.ts, 275, 1), Decl(lib.d.ts, 443, 11), Decl(lib.d.ts, 1538, 1))
37+
>String : Symbol(String, Decl(lib.d.ts, 275, 1), Decl(lib.d.ts, 443, 11), Decl(lib.d.ts, 1543, 1))
3838

3939
function a4(...a: arrayString) { }
4040
>a4 : Symbol(a4, Decl(destructuringParameterDeclaration3ES6.ts, 13, 36))

tests/baselines/reference/emitArrowFunctionWhenUsingArguments14_ES6.symbols

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ function f() {
55

66
if (Math.random()) {
77
>Math.random : Symbol(Math.random, Decl(lib.d.ts, 608, 38))
8-
>Math : Symbol(Math, Decl(lib.d.ts, 522, 1), Decl(lib.d.ts, 633, 11), Decl(lib.d.ts, 1694, 1))
8+
>Math : Symbol(Math, Decl(lib.d.ts, 522, 1), Decl(lib.d.ts, 633, 11), Decl(lib.d.ts, 1699, 1))
99
>random : Symbol(Math.random, Decl(lib.d.ts, 608, 38))
1010

1111
let arguments = 100;

tests/baselines/reference/emitArrowFunctionWhenUsingArguments15_ES6.symbols

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ function f() {
88

99
if (Math.random()) {
1010
>Math.random : Symbol(Math.random, Decl(lib.d.ts, 608, 38))
11-
>Math : Symbol(Math, Decl(lib.d.ts, 522, 1), Decl(lib.d.ts, 633, 11), Decl(lib.d.ts, 1694, 1))
11+
>Math : Symbol(Math, Decl(lib.d.ts, 522, 1), Decl(lib.d.ts, 633, 11), Decl(lib.d.ts, 1699, 1))
1212
>random : Symbol(Math.random, Decl(lib.d.ts, 608, 38))
1313

1414
const arguments = 100;

tests/baselines/reference/emitArrowFunctionWhenUsingArguments16_ES6.symbols

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ function f() {
88

99
if (Math.random()) {
1010
>Math.random : Symbol(Math.random, Decl(lib.d.ts, 608, 38))
11-
>Math : Symbol(Math, Decl(lib.d.ts, 522, 1), Decl(lib.d.ts, 633, 11), Decl(lib.d.ts, 1694, 1))
11+
>Math : Symbol(Math, Decl(lib.d.ts, 522, 1), Decl(lib.d.ts, 633, 11), Decl(lib.d.ts, 1699, 1))
1212
>random : Symbol(Math.random, Decl(lib.d.ts, 608, 38))
1313

1414
return () => arguments[0];

tests/baselines/reference/emitArrowFunctionWhenUsingArguments17_ES6.symbols

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ function f() {
99

1010
if (Math.random()) {
1111
>Math.random : Symbol(Math.random, Decl(lib.d.ts, 608, 38))
12-
>Math : Symbol(Math, Decl(lib.d.ts, 522, 1), Decl(lib.d.ts, 633, 11), Decl(lib.d.ts, 1694, 1))
12+
>Math : Symbol(Math, Decl(lib.d.ts, 522, 1), Decl(lib.d.ts, 633, 11), Decl(lib.d.ts, 1699, 1))
1313
>random : Symbol(Math.random, Decl(lib.d.ts, 608, 38))
1414

1515
return () => arguments[0];

tests/baselines/reference/emitArrowFunctionWhenUsingArguments18_ES6.symbols

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ function f() {
99

1010
if (Math.random()) {
1111
>Math.random : Symbol(Math.random, Decl(lib.d.ts, 608, 38))
12-
>Math : Symbol(Math, Decl(lib.d.ts, 522, 1), Decl(lib.d.ts, 633, 11), Decl(lib.d.ts, 1694, 1))
12+
>Math : Symbol(Math, Decl(lib.d.ts, 522, 1), Decl(lib.d.ts, 633, 11), Decl(lib.d.ts, 1699, 1))
1313
>random : Symbol(Math.random, Decl(lib.d.ts, 608, 38))
1414

1515
return () => arguments;

tests/baselines/reference/for-of37.symbols

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
=== tests/cases/conformance/es6/for-ofStatements/for-of37.ts ===
22
var map = new Map([["", true]]);
33
>map : Symbol(map, Decl(for-of37.ts, 0, 3))
4-
>Map : Symbol(Map, Decl(lib.d.ts, 1867, 1), Decl(lib.d.ts, 1889, 11))
4+
>Map : Symbol(Map, Decl(lib.d.ts, 1872, 1), Decl(lib.d.ts, 1894, 11))
55

66
for (var v of map) {
77
>v : Symbol(v, Decl(for-of37.ts, 1, 8))

tests/baselines/reference/for-of38.symbols

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
=== tests/cases/conformance/es6/for-ofStatements/for-of38.ts ===
22
var map = new Map([["", true]]);
33
>map : Symbol(map, Decl(for-of38.ts, 0, 3))
4-
>Map : Symbol(Map, Decl(lib.d.ts, 1867, 1), Decl(lib.d.ts, 1889, 11))
4+
>Map : Symbol(Map, Decl(lib.d.ts, 1872, 1), Decl(lib.d.ts, 1894, 11))
55

66
for (var [k, v] of map) {
77
>k : Symbol(k, Decl(for-of38.ts, 1, 10))

tests/baselines/reference/for-of40.symbols

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
=== tests/cases/conformance/es6/for-ofStatements/for-of40.ts ===
22
var map = new Map([["", true]]);
33
>map : Symbol(map, Decl(for-of40.ts, 0, 3))
4-
>Map : Symbol(Map, Decl(lib.d.ts, 1867, 1), Decl(lib.d.ts, 1889, 11))
4+
>Map : Symbol(Map, Decl(lib.d.ts, 1872, 1), Decl(lib.d.ts, 1894, 11))
55

66
for (var [k = "", v = false] of map) {
77
>k : Symbol(k, Decl(for-of40.ts, 1, 10))

tests/baselines/reference/for-of45.symbols

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ var k: string, v: boolean;
55

66
var map = new Map([["", true]]);
77
>map : Symbol(map, Decl(for-of45.ts, 1, 3))
8-
>Map : Symbol(Map, Decl(lib.d.ts, 1867, 1), Decl(lib.d.ts, 1889, 11))
8+
>Map : Symbol(Map, Decl(lib.d.ts, 1872, 1), Decl(lib.d.ts, 1894, 11))
99

1010
for ([k = "", v = false] of map) {
1111
>k : Symbol(k, Decl(for-of45.ts, 0, 3))

tests/baselines/reference/for-of50.symbols

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
=== tests/cases/conformance/es6/for-ofStatements/for-of50.ts ===
22
var map = new Map([["", true]]);
33
>map : Symbol(map, Decl(for-of50.ts, 0, 3))
4-
>Map : Symbol(Map, Decl(lib.d.ts, 1867, 1), Decl(lib.d.ts, 1889, 11))
4+
>Map : Symbol(Map, Decl(lib.d.ts, 1872, 1), Decl(lib.d.ts, 1894, 11))
55

66
for (const [k, v] of map) {
77
>k : Symbol(k, Decl(for-of50.ts, 1, 12))

tests/baselines/reference/for-of57.symbols

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
=== tests/cases/conformance/es6/for-ofStatements/for-of57.ts ===
22
var iter: Iterable<number>;
33
>iter : Symbol(iter, Decl(for-of57.ts, 0, 3))
4-
>Iterable : Symbol(Iterable, Decl(lib.d.ts, 1663, 1))
4+
>Iterable : Symbol(Iterable, Decl(lib.d.ts, 1668, 1))
55

66
for (let num of iter) { }
77
>num : Symbol(num, Decl(for-of57.ts, 1, 8))

tests/baselines/reference/iterableArrayPattern30.symbols

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ const [[k1, v1], [k2, v2]] = new Map([["", true], ["hello", true]])
44
>v1 : Symbol(v1, Decl(iterableArrayPattern30.ts, 0, 11))
55
>k2 : Symbol(k2, Decl(iterableArrayPattern30.ts, 0, 18))
66
>v2 : Symbol(v2, Decl(iterableArrayPattern30.ts, 0, 21))
7-
>Map : Symbol(Map, Decl(lib.d.ts, 1867, 1), Decl(lib.d.ts, 1889, 11))
7+
>Map : Symbol(Map, Decl(lib.d.ts, 1872, 1), Decl(lib.d.ts, 1894, 11))
88

tests/baselines/reference/iterableContextualTyping1.symbols

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
=== tests/cases/conformance/expressions/contextualTyping/iterableContextualTyping1.ts ===
22
var iter: Iterable<(x: string) => number> = [s => s.length];
33
>iter : Symbol(iter, Decl(iterableContextualTyping1.ts, 0, 3))
4-
>Iterable : Symbol(Iterable, Decl(lib.d.ts, 1663, 1))
4+
>Iterable : Symbol(Iterable, Decl(lib.d.ts, 1668, 1))
55
>x : Symbol(x, Decl(iterableContextualTyping1.ts, 0, 20))
66
>s : Symbol(s, Decl(iterableContextualTyping1.ts, 0, 45))
77
>s.length : Symbol(String.length, Decl(lib.d.ts, 414, 19))

tests/baselines/reference/iteratorSpreadInArray11.symbols

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
=== tests/cases/conformance/es6/spread/iteratorSpreadInArray11.ts ===
22
var iter: Iterable<number>;
33
>iter : Symbol(iter, Decl(iteratorSpreadInArray11.ts, 0, 3))
4-
>Iterable : Symbol(Iterable, Decl(lib.d.ts, 1663, 1))
4+
>Iterable : Symbol(Iterable, Decl(lib.d.ts, 1668, 1))
55

66
var array = [...iter];
77
>array : Symbol(array, Decl(iteratorSpreadInArray11.ts, 1, 3))

tests/baselines/reference/promiseVoidErrorCallback.symbols

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ interface T3 {
2222

2323
function f1(): Promise<T1> {
2424
>f1 : Symbol(f1, Decl(promiseVoidErrorCallback.ts, 10, 1))
25-
>Promise : Symbol(Promise, Decl(lib.d.ts, 4769, 1), Decl(lib.d.ts, 4854, 11))
25+
>Promise : Symbol(Promise, Decl(lib.d.ts, 4774, 1), Decl(lib.d.ts, 4859, 11))
2626
>T1 : Symbol(T1, Decl(promiseVoidErrorCallback.ts, 0, 0))
2727

2828
return Promise.resolve({ __t1: "foo_t1" });
29-
>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.d.ts, 4836, 39), Decl(lib.d.ts, 4843, 54))
30-
>Promise : Symbol(Promise, Decl(lib.d.ts, 4769, 1), Decl(lib.d.ts, 4854, 11))
31-
>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.d.ts, 4836, 39), Decl(lib.d.ts, 4843, 54))
29+
>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.d.ts, 4841, 39), Decl(lib.d.ts, 4848, 54))
30+
>Promise : Symbol(Promise, Decl(lib.d.ts, 4774, 1), Decl(lib.d.ts, 4859, 11))
31+
>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.d.ts, 4841, 39), Decl(lib.d.ts, 4848, 54))
3232
>__t1 : Symbol(__t1, Decl(promiseVoidErrorCallback.ts, 13, 28))
3333
}
3434

@@ -47,12 +47,12 @@ function f2(x: T1): T2 {
4747

4848
var x3 = f1()
4949
>x3 : Symbol(x3, Decl(promiseVoidErrorCallback.ts, 20, 3))
50-
>f1() .then(f2, (e: Error) => { throw e;}) .then : Symbol(Promise.then, Decl(lib.d.ts, 4774, 22), Decl(lib.d.ts, 4781, 158))
51-
>f1() .then : Symbol(Promise.then, Decl(lib.d.ts, 4774, 22), Decl(lib.d.ts, 4781, 158))
50+
>f1() .then(f2, (e: Error) => { throw e;}) .then : Symbol(Promise.then, Decl(lib.d.ts, 4779, 22), Decl(lib.d.ts, 4786, 158))
51+
>f1() .then : Symbol(Promise.then, Decl(lib.d.ts, 4779, 22), Decl(lib.d.ts, 4786, 158))
5252
>f1 : Symbol(f1, Decl(promiseVoidErrorCallback.ts, 10, 1))
5353

5454
.then(f2, (e: Error) => {
55-
>then : Symbol(Promise.then, Decl(lib.d.ts, 4774, 22), Decl(lib.d.ts, 4781, 158))
55+
>then : Symbol(Promise.then, Decl(lib.d.ts, 4779, 22), Decl(lib.d.ts, 4786, 158))
5656
>f2 : Symbol(f2, Decl(promiseVoidErrorCallback.ts, 14, 1))
5757
>e : Symbol(e, Decl(promiseVoidErrorCallback.ts, 21, 15))
5858
>Error : Symbol(Error, Decl(lib.d.ts, 876, 38), Decl(lib.d.ts, 889, 11))
@@ -62,7 +62,7 @@ var x3 = f1()
6262

6363
})
6464
.then((x: T2) => {
65-
>then : Symbol(Promise.then, Decl(lib.d.ts, 4774, 22), Decl(lib.d.ts, 4781, 158))
65+
>then : Symbol(Promise.then, Decl(lib.d.ts, 4779, 22), Decl(lib.d.ts, 4786, 158))
6666
>x : Symbol(x, Decl(promiseVoidErrorCallback.ts, 24, 11))
6767
>T2 : Symbol(T2, Decl(promiseVoidErrorCallback.ts, 2, 1))
6868

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
=== tests/cases/conformance/es6/templates/templateStringWithEmbeddedNewOperatorES6.ts ===
22
var x = `abc${ new String("Hi") }def`;
33
>x : Symbol(x, Decl(templateStringWithEmbeddedNewOperatorES6.ts, 0, 3))
4-
>String : Symbol(String, Decl(lib.d.ts, 275, 1), Decl(lib.d.ts, 443, 11), Decl(lib.d.ts, 1538, 1))
4+
>String : Symbol(String, Decl(lib.d.ts, 275, 1), Decl(lib.d.ts, 443, 11), Decl(lib.d.ts, 1543, 1))
55

0 commit comments

Comments
 (0)