Skip to content

Commit af731e0

Browse files
author
Kanchalai Tanglertsampan
committed
Update baselines from merging with master
1 parent 42f3980 commit af731e0

27 files changed

+91
-117
lines changed

tests/baselines/reference/ES5For-ofTypeCheck10.errors.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck10.ts(10,6): error TS2304: Cannot find name 'Symbol'.
2-
tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck10.ts(15,15): error TS2495: Type 'StringIterator' is not an array type or a string type.
1+
tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck10.ts(9,6): error TS2304: Cannot find name 'Symbol'.
2+
tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck10.ts(14,15): error TS2495: Type 'StringIterator' is not an array type or a string type.
33

44

55
==== tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck10.ts (2 errors) ====
6-
76
// In ES3/5, you cannot for...of over an arbitrary iterable.
87
class StringIterator {
98
next() {

tests/baselines/reference/ES5For-ofTypeCheck10.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//// [ES5For-ofTypeCheck10.ts]
2-
32
// In ES3/5, you cannot for...of over an arbitrary iterable.
43
class StringIterator {
54
next() {

tests/baselines/reference/checkJsFiles.errors.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
tests/cases/compiler/a.js(3,1): error TS2322: Type '0' is not assignable to type 'string'.
1+
tests/cases/compiler/a.js(2,1): error TS2322: Type '0' is not assignable to type 'string'.
22

33

44
==== tests/cases/compiler/a.js (1 errors) ====
5-
65
var x = "string";
76
x = 0;
87
~

tests/baselines/reference/checkJsFiles2.errors.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
tests/cases/compiler/a.js(4,1): error TS2322: Type '0' is not assignable to type 'string'.
1+
tests/cases/compiler/a.js(3,1): error TS2322: Type '0' is not assignable to type 'string'.
22

33

44
==== tests/cases/compiler/a.js (1 errors) ====
5-
65
// @ts-check
76
var x = "string";
87
x = 0;

tests/baselines/reference/checkJsFiles3.errors.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
tests/cases/compiler/a.js(4,1): error TS2322: Type '0' is not assignable to type 'string'.
1+
tests/cases/compiler/a.js(3,1): error TS2322: Type '0' is not assignable to type 'string'.
22

33

44
==== tests/cases/compiler/a.js (1 errors) ====
5-
65
// @ts-check
76
var x = "string";
87
x = 0;

tests/baselines/reference/checkJsFiles4.errors.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
tests/cases/compiler/a.js(4,1): error TS2322: Type '0' is not assignable to type 'string'.
1+
tests/cases/compiler/a.js(3,1): error TS2322: Type '0' is not assignable to type 'string'.
22

33

44
==== tests/cases/compiler/a.js (1 errors) ====
5-
65
// @ts-check
76
var x = "string";
87
x = 0;
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
=== tests/cases/compiler/a.js ===
2-
32
// @ts-nocheck
43
var x = "string";
5-
>x : Symbol(x, Decl(a.js, 2, 3))
4+
>x : Symbol(x, Decl(a.js, 1, 3))
65

76
x = 0;
8-
>x : Symbol(x, Decl(a.js, 2, 3))
7+
>x : Symbol(x, Decl(a.js, 1, 3))
98

tests/baselines/reference/checkJsFiles5.types

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
=== tests/cases/compiler/a.js ===
2-
32
// @ts-nocheck
43
var x = "string";
54
>x : string

tests/baselines/reference/checkJsFiles6.errors.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,4 @@ error TS6054: File 'tests/cases/compiler/a.js' has unsupported extension. The on
55
!!! error TS5052: Option 'checkJs' cannot be specified without specifying option 'allowJs'.
66
!!! error TS6054: File 'tests/cases/compiler/a.js' has unsupported extension. The only supported extensions are '.ts', '.tsx', '.d.ts'.
77
==== tests/cases/compiler/a.js (0 errors) ====
8-
98
var x;
Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,19 @@
11
=== tests/cases/compiler/a.js ===
2-
32
var x = 0;
4-
>x : Symbol(x, Decl(a.js, 1, 3))
3+
>x : Symbol(x, Decl(a.js, 0, 3))
54

65

76
/// @ts-ignore
87
x();
9-
>x : Symbol(x, Decl(a.js, 1, 3))
8+
>x : Symbol(x, Decl(a.js, 0, 3))
109

1110
/// @ts-ignore
1211
x();
13-
>x : Symbol(x, Decl(a.js, 1, 3))
12+
>x : Symbol(x, Decl(a.js, 0, 3))
1413

1514
/// @ts-ignore
1615
x(
17-
>x : Symbol(x, Decl(a.js, 1, 3))
16+
>x : Symbol(x, Decl(a.js, 0, 3))
1817

1918
2,
2019
3);
@@ -28,11 +27,11 @@ x(
2827
// @anohter
2928

3029
x();
31-
>x : Symbol(x, Decl(a.js, 1, 3))
30+
>x : Symbol(x, Decl(a.js, 0, 3))
3231

3332

3433

3534
// @ts-ignore: no call signature
3635
x();
37-
>x : Symbol(x, Decl(a.js, 1, 3))
36+
>x : Symbol(x, Decl(a.js, 0, 3))
3837

0 commit comments

Comments
 (0)