Skip to content

Commit 2479c07

Browse files
committed
Update baselines
1 parent 1bff5b7 commit 2479c07

File tree

113 files changed

+709
-709
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

113 files changed

+709
-709
lines changed

tests/baselines/reference/ModuleWithExportedAndNonExportedFunctions.errors.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
tests/cases/conformance/internalModules/exportDeclarations/ModuleWithExportedAndNonExportedFunctions.ts(28,13): error TS2339: Property 'fn2' does not exist on type 'typeof A'.
2-
tests/cases/conformance/internalModules/exportDeclarations/ModuleWithExportedAndNonExportedFunctions.ts(29,14): error TS2339: Property 'fng2' does not exist on type 'typeof A'.
1+
tests/cases/conformance/internalModules/exportDeclarations/ModuleWithExportedAndNonExportedFunctions.ts(28,13): error TS2551: Property 'fn2' does not exist on type 'typeof A'. Did you mean 'fng'?
2+
tests/cases/conformance/internalModules/exportDeclarations/ModuleWithExportedAndNonExportedFunctions.ts(29,14): error TS2551: Property 'fng2' does not exist on type 'typeof A'. Did you mean 'fng'?
33

44

55
==== tests/cases/conformance/internalModules/exportDeclarations/ModuleWithExportedAndNonExportedFunctions.ts (2 errors) ====
@@ -32,7 +32,7 @@ tests/cases/conformance/internalModules/exportDeclarations/ModuleWithExportedAnd
3232
// these should be errors since the functions are not exported
3333
var fn2 = A.fn2;
3434
~~~
35-
!!! error TS2339: Property 'fn2' does not exist on type 'typeof A'.
35+
!!! error TS2551: Property 'fn2' does not exist on type 'typeof A'. Did you mean 'fng'?
3636
var fng2 = A.fng2;
3737
~~~~
38-
!!! error TS2339: Property 'fng2' does not exist on type 'typeof A'.
38+
!!! error TS2551: Property 'fng2' does not exist on type 'typeof A'. Did you mean 'fng'?
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
tests/cases/conformance/es6/variableDeclarations/VariableDeclaration11_es6.ts(2,1): error TS1212: Identifier expected. 'let' is a reserved word in strict mode.
2-
tests/cases/conformance/es6/variableDeclarations/VariableDeclaration11_es6.ts(2,1): error TS2304: Cannot find name 'let'.
2+
tests/cases/conformance/es6/variableDeclarations/VariableDeclaration11_es6.ts(2,1): error TS2552: Cannot find name 'let'. Did you mean 'Set'?
33

44

55
==== tests/cases/conformance/es6/variableDeclarations/VariableDeclaration11_es6.ts (2 errors) ====
@@ -8,4 +8,4 @@ tests/cases/conformance/es6/variableDeclarations/VariableDeclaration11_es6.ts(2,
88
~~~
99
!!! error TS1212: Identifier expected. 'let' is a reserved word in strict mode.
1010
~~~
11-
!!! error TS2304: Cannot find name 'let'.
11+
!!! error TS2552: Cannot find name 'let'. Did you mean 'Set'?
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
tests/cases/conformance/es6/variableDeclarations/VariableDeclaration6_es6.ts(1,1): error TS2304: Cannot find name 'let'.
1+
tests/cases/conformance/es6/variableDeclarations/VariableDeclaration6_es6.ts(1,1): error TS2552: Cannot find name 'let'. Did you mean 'Set'?
22

33

44
==== tests/cases/conformance/es6/variableDeclarations/VariableDeclaration6_es6.ts (1 errors) ====
55
let
66
~~~
7-
!!! error TS2304: Cannot find name 'let'.
7+
!!! error TS2552: Cannot find name 'let'. Did you mean 'Set'?

tests/baselines/reference/anonymousClassExpression2.errors.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
tests/cases/compiler/anonymousClassExpression2.ts(13,18): error TS2339: Property 'methodA' does not exist on type 'B'.
1+
tests/cases/compiler/anonymousClassExpression2.ts(13,18): error TS2551: Property 'methodA' does not exist on type 'B'. Did you mean 'methodB'?
22

33

44
==== tests/cases/compiler/anonymousClassExpression2.ts (1 errors) ====
@@ -16,7 +16,7 @@ tests/cases/compiler/anonymousClassExpression2.ts(13,18): error TS2339: Property
1616
methodB() {
1717
this.methodA; // error
1818
~~~~~~~
19-
!!! error TS2339: Property 'methodA' does not exist on type 'B'.
19+
!!! error TS2551: Property 'methodA' does not exist on type 'B'. Did you mean 'methodB'?
2020
this.methodB; // ok
2121
}
2222
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
tests/cases/compiler/assignmentRestElementWithErrorSourceType.ts(2,5): error TS2304: Cannot find name 'c'.
2-
tests/cases/compiler/assignmentRestElementWithErrorSourceType.ts(2,10): error TS2304: Cannot find name 'tupel'.
2+
tests/cases/compiler/assignmentRestElementWithErrorSourceType.ts(2,10): error TS2552: Cannot find name 'tupel'. Did you mean 'tuple'?
33

44

55
==== tests/cases/compiler/assignmentRestElementWithErrorSourceType.ts (2 errors) ====
@@ -8,4 +8,4 @@ tests/cases/compiler/assignmentRestElementWithErrorSourceType.ts(2,10): error TS
88
~
99
!!! error TS2304: Cannot find name 'c'.
1010
~~~~~
11-
!!! error TS2304: Cannot find name 'tupel'.
11+
!!! error TS2552: Cannot find name 'tupel'. Did you mean 'tuple'?

tests/baselines/reference/autoLift2.errors.txt

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
tests/cases/compiler/autoLift2.ts(5,14): error TS2339: Property 'foo' does not exist on type 'A'.
22
tests/cases/compiler/autoLift2.ts(5,17): error TS1005: ';' expected.
3-
tests/cases/compiler/autoLift2.ts(5,19): error TS2304: Cannot find name 'any'.
4-
tests/cases/compiler/autoLift2.ts(6,14): error TS2339: Property 'bar' does not exist on type 'A'.
3+
tests/cases/compiler/autoLift2.ts(5,19): error TS2552: Cannot find name 'any'. Did you mean 'NaN'?
4+
tests/cases/compiler/autoLift2.ts(6,14): error TS2551: Property 'bar' does not exist on type 'A'. Did you mean 'baz'?
55
tests/cases/compiler/autoLift2.ts(6,17): error TS1005: ';' expected.
6-
tests/cases/compiler/autoLift2.ts(6,19): error TS2304: Cannot find name 'any'.
6+
tests/cases/compiler/autoLift2.ts(6,19): error TS2552: Cannot find name 'any'. Did you mean 'NaN'?
77
tests/cases/compiler/autoLift2.ts(12,11): error TS2339: Property 'foo' does not exist on type 'A'.
8-
tests/cases/compiler/autoLift2.ts(14,11): error TS2339: Property 'bar' does not exist on type 'A'.
8+
tests/cases/compiler/autoLift2.ts(14,11): error TS2551: Property 'bar' does not exist on type 'A'. Did you mean 'baz'?
99
tests/cases/compiler/autoLift2.ts(16,33): error TS2339: Property 'foo' does not exist on type 'A'.
10-
tests/cases/compiler/autoLift2.ts(18,33): error TS2339: Property 'bar' does not exist on type 'A'.
10+
tests/cases/compiler/autoLift2.ts(18,33): error TS2551: Property 'bar' does not exist on type 'A'. Did you mean 'baz'?
1111

1212

1313
==== tests/cases/compiler/autoLift2.ts (10 errors) ====
@@ -21,14 +21,14 @@ tests/cases/compiler/autoLift2.ts(18,33): error TS2339: Property 'bar' does not
2121
~
2222
!!! error TS1005: ';' expected.
2323
~~~
24-
!!! error TS2304: Cannot find name 'any'.
24+
!!! error TS2552: Cannot find name 'any'. Did you mean 'NaN'?
2525
this.bar: any;
2626
~~~
27-
!!! error TS2339: Property 'bar' does not exist on type 'A'.
27+
!!! error TS2551: Property 'bar' does not exist on type 'A'. Did you mean 'baz'?
2828
~
2929
!!! error TS1005: ';' expected.
3030
~~~
31-
!!! error TS2304: Cannot find name 'any'.
31+
!!! error TS2552: Cannot find name 'any'. Did you mean 'NaN'?
3232
}
3333

3434

@@ -40,15 +40,15 @@ tests/cases/compiler/autoLift2.ts(18,33): error TS2339: Property 'bar' does not
4040

4141
this.bar = "bar";
4242
~~~
43-
!!! error TS2339: Property 'bar' does not exist on type 'A'.
43+
!!! error TS2551: Property 'bar' does not exist on type 'A'. Did you mean 'baz'?
4444

4545
[1, 2].forEach((p) => this.foo);
4646
~~~
4747
!!! error TS2339: Property 'foo' does not exist on type 'A'.
4848

4949
[1, 2].forEach((p) => this.bar);
5050
~~~
51-
!!! error TS2339: Property 'bar' does not exist on type 'A'.
51+
!!! error TS2551: Property 'bar' does not exist on type 'A'. Did you mean 'baz'?
5252

5353
}
5454

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
tests/cases/compiler/badArrayIndex.ts(1,15): error TS2304: Cannot find name 'number'.
1+
tests/cases/compiler/badArrayIndex.ts(1,15): error TS2552: Cannot find name 'number'. Did you mean 'Number'?
22
tests/cases/compiler/badArrayIndex.ts(1,22): error TS1109: Expression expected.
33

44

55
==== tests/cases/compiler/badArrayIndex.ts (2 errors) ====
66
var results = number[];
77
~~~~~~
8-
!!! error TS2304: Cannot find name 'number'.
8+
!!! error TS2552: Cannot find name 'number'. Did you mean 'Number'?
99
~
1010
!!! error TS1109: Expression expected.

tests/baselines/reference/baseCheck.errors.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
tests/cases/compiler/baseCheck.ts(9,18): error TS2304: Cannot find name 'loc'.
1+
tests/cases/compiler/baseCheck.ts(9,18): error TS2552: Cannot find name 'loc'. Did you mean 'ELoc'?
22
tests/cases/compiler/baseCheck.ts(17,53): error TS2346: Supplied parameters do not match any signature of call target.
33
tests/cases/compiler/baseCheck.ts(17,59): error TS17009: 'super' must be called before accessing 'this' in the constructor of a derived class.
44
tests/cases/compiler/baseCheck.ts(18,62): error TS17009: 'super' must be called before accessing 'this' in the constructor of a derived class.
@@ -20,7 +20,7 @@ tests/cases/compiler/baseCheck.ts(26,9): error TS2304: Cannot find name 'x'.
2020
constructor(x: number) {
2121
super(0, loc);
2222
~~~
23-
!!! error TS2304: Cannot find name 'loc'.
23+
!!! error TS2552: Cannot find name 'loc'. Did you mean 'ELoc'?
2424
}
2525

2626
m() {

tests/baselines/reference/bases.errors.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
tests/cases/compiler/bases.ts(7,14): error TS2339: Property 'y' does not exist on type 'B'.
22
tests/cases/compiler/bases.ts(7,15): error TS1005: ';' expected.
3-
tests/cases/compiler/bases.ts(7,17): error TS2304: Cannot find name 'any'.
3+
tests/cases/compiler/bases.ts(7,17): error TS2552: Cannot find name 'any'. Did you mean 'NaN'?
44
tests/cases/compiler/bases.ts(11,7): error TS2420: Class 'C' incorrectly implements interface 'I'.
55
Property 'x' is missing in type 'C'.
66
tests/cases/compiler/bases.ts(12,5): error TS2377: Constructors for derived classes must contain a 'super' call.
77
tests/cases/compiler/bases.ts(13,9): error TS17009: 'super' must be called before accessing 'this' in the constructor of a derived class.
88
tests/cases/compiler/bases.ts(13,14): error TS2339: Property 'x' does not exist on type 'C'.
99
tests/cases/compiler/bases.ts(13,15): error TS1005: ';' expected.
10-
tests/cases/compiler/bases.ts(13,17): error TS2304: Cannot find name 'any'.
10+
tests/cases/compiler/bases.ts(13,17): error TS2552: Cannot find name 'any'. Did you mean 'NaN'?
1111
tests/cases/compiler/bases.ts(17,9): error TS2339: Property 'x' does not exist on type 'C'.
1212
tests/cases/compiler/bases.ts(18,9): error TS2339: Property 'y' does not exist on type 'C'.
1313

@@ -25,7 +25,7 @@ tests/cases/compiler/bases.ts(18,9): error TS2339: Property 'y' does not exist o
2525
~
2626
!!! error TS1005: ';' expected.
2727
~~~
28-
!!! error TS2304: Cannot find name 'any'.
28+
!!! error TS2552: Cannot find name 'any'. Did you mean 'NaN'?
2929
}
3030
}
3131

@@ -44,7 +44,7 @@ tests/cases/compiler/bases.ts(18,9): error TS2339: Property 'y' does not exist o
4444
~
4545
!!! error TS1005: ';' expected.
4646
~~~
47-
!!! error TS2304: Cannot find name 'any'.
47+
!!! error TS2552: Cannot find name 'any'. Did you mean 'NaN'?
4848
}
4949
~~~~~
5050
!!! error TS2377: Constructors for derived classes must contain a 'super' call.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
tests/cases/compiler/breakInIterationOrSwitchStatement4.ts(1,15): error TS2304: Cannot find name 'something'.
1+
tests/cases/compiler/breakInIterationOrSwitchStatement4.ts(1,15): error TS2552: Cannot find name 'something'. Did you mean 'String'?
22

33

44
==== tests/cases/compiler/breakInIterationOrSwitchStatement4.ts (1 errors) ====
55
for (var i in something) {
66
~~~~~~~~~
7-
!!! error TS2304: Cannot find name 'something'.
7+
!!! error TS2552: Cannot find name 'something'. Did you mean 'String'?
88
break;
99
}

0 commit comments

Comments
 (0)