Skip to content

Commit de3eb36

Browse files
committed
Update baselines
1 parent 4c0122d commit de3eb36

58 files changed

Lines changed: 356 additions & 167 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
tests/cases/conformance/es6/memberFunctionDeclarations/MemberFunctionDeclaration3_es6.ts(2,4): error TS9001: Generators are not currently supported.
2+
tests/cases/conformance/es6/memberFunctionDeclarations/MemberFunctionDeclaration3_es6.ts(2,6): error TS2304: Cannot find name 'foo'.
23

34

4-
==== tests/cases/conformance/es6/memberFunctionDeclarations/MemberFunctionDeclaration3_es6.ts (1 errors) ====
5+
==== tests/cases/conformance/es6/memberFunctionDeclarations/MemberFunctionDeclaration3_es6.ts (2 errors) ====
56
class C {
67
*[foo]() { }
78
~
89
!!! error TS9001: Generators are not currently supported.
10+
~~~
11+
!!! error TS2304: Cannot find name 'foo'.
912
}

tests/baselines/reference/complicatedPrivacy.errors.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
tests/cases/compiler/complicatedPrivacy.ts(24,38): error TS1005: ';' expected.
2+
tests/cases/compiler/complicatedPrivacy.ts(35,6): error TS2304: Cannot find name 'number'.
23
tests/cases/compiler/complicatedPrivacy.ts(73,49): error TS2305: Module 'mglo5' has no exported member 'i6'.
34

45

5-
==== tests/cases/compiler/complicatedPrivacy.ts (2 errors) ====
6+
==== tests/cases/compiler/complicatedPrivacy.ts (3 errors) ====
67
module m1 {
78
export module m2 {
89

@@ -39,7 +40,9 @@ tests/cases/compiler/complicatedPrivacy.ts(73,49): error TS2305: Module 'mglo5'
3940

4041
export function f4(arg1:
4142
{
42-
[number]: C1;
43+
[number]: C1; // Used to be indexer, now it is a computed property
44+
~~~~~~
45+
!!! error TS2304: Cannot find name 'number'.
4346
}) {
4447
}
4548

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,30 @@
1+
tests/cases/conformance/es6/computedProperties/computedPropertyNames3.ts(4,12): error TS2463: A computed property name must be of type 'string', 'number', or 'any'.
12
tests/cases/conformance/es6/computedProperties/computedPropertyNames3.ts(5,9): error TS2378: A 'get' accessor must return a value or consist of a single 'throw' statement.
3+
tests/cases/conformance/es6/computedProperties/computedPropertyNames3.ts(5,9): error TS2463: A computed property name must be of type 'string', 'number', or 'any'.
4+
tests/cases/conformance/es6/computedProperties/computedPropertyNames3.ts(6,9): error TS2463: A computed property name must be of type 'string', 'number', or 'any'.
25
tests/cases/conformance/es6/computedProperties/computedPropertyNames3.ts(7,16): error TS2378: A 'get' accessor must return a value or consist of a single 'throw' statement.
6+
tests/cases/conformance/es6/computedProperties/computedPropertyNames3.ts(7,16): error TS2463: A computed property name must be of type 'string', 'number', or 'any'.
37

48

5-
==== tests/cases/conformance/es6/computedProperties/computedPropertyNames3.ts (2 errors) ====
9+
==== tests/cases/conformance/es6/computedProperties/computedPropertyNames3.ts (6 errors) ====
610
var id;
711
class C {
812
[0 + 1]() { }
913
static [() => { }]() { }
14+
~~~~~~~~~~~
15+
!!! error TS2463: A computed property name must be of type 'string', 'number', or 'any'.
1016
get [delete id]() { }
1117
~~~~~~~~~~~
1218
!!! error TS2378: A 'get' accessor must return a value or consist of a single 'throw' statement.
19+
~~~~~~~~~~~
20+
!!! error TS2463: A computed property name must be of type 'string', 'number', or 'any'.
1321
set [[0, 1]](v) { }
22+
~~~~~~~~
23+
!!! error TS2463: A computed property name must be of type 'string', 'number', or 'any'.
1424
static get [<String>""]() { }
1525
~~~~~~~~~~~~
1626
!!! error TS2378: A 'get' accessor must return a value or consist of a single 'throw' statement.
27+
~~~~~~~~~~~~
28+
!!! error TS2463: A computed property name must be of type 'string', 'number', or 'any'.
1729
static set [id.toString()](v) { }
1830
}

tests/baselines/reference/giant.errors.txt

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ tests/cases/compiler/giant.ts(35,12): error TS2300: Duplicate identifier 'tgF'.
1717
tests/cases/compiler/giant.ts(36,16): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
1818
tests/cases/compiler/giant.ts(36,16): error TS2300: Duplicate identifier 'tgF'.
1919
tests/cases/compiler/giant.ts(61,5): error TS1169: Computed property names are not allowed in interfaces.
20+
tests/cases/compiler/giant.ts(61,6): error TS2304: Cannot find name 'p'.
2021
tests/cases/compiler/giant.ts(62,5): error TS1021: An index signature must have a type annotation.
2122
tests/cases/compiler/giant.ts(63,6): error TS1096: An index signature must have exactly one parameter.
2223
tests/cases/compiler/giant.ts(76,5): error TS2386: Overload signatures must all be optional or required.
@@ -39,6 +40,7 @@ tests/cases/compiler/giant.ts(99,16): error TS2300: Duplicate identifier 'tgF'.
3940
tests/cases/compiler/giant.ts(100,20): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
4041
tests/cases/compiler/giant.ts(100,20): error TS2300: Duplicate identifier 'tgF'.
4142
tests/cases/compiler/giant.ts(125,9): error TS1169: Computed property names are not allowed in interfaces.
43+
tests/cases/compiler/giant.ts(125,10): error TS2304: Cannot find name 'p'.
4244
tests/cases/compiler/giant.ts(126,9): error TS1021: An index signature must have a type annotation.
4345
tests/cases/compiler/giant.ts(127,10): error TS1096: An index signature must have exactly one parameter.
4446
tests/cases/compiler/giant.ts(140,9): error TS2386: Overload signatures must all be optional or required.
@@ -62,6 +64,7 @@ tests/cases/compiler/giant.ts(178,16): error TS2300: Duplicate identifier 'tgF'.
6264
tests/cases/compiler/giant.ts(179,20): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
6365
tests/cases/compiler/giant.ts(179,20): error TS2300: Duplicate identifier 'tgF'.
6466
tests/cases/compiler/giant.ts(204,9): error TS1169: Computed property names are not allowed in interfaces.
67+
tests/cases/compiler/giant.ts(204,10): error TS2304: Cannot find name 'p'.
6568
tests/cases/compiler/giant.ts(205,9): error TS1021: An index signature must have a type annotation.
6669
tests/cases/compiler/giant.ts(206,10): error TS1096: An index signature must have exactly one parameter.
6770
tests/cases/compiler/giant.ts(219,9): error TS2386: Overload signatures must all be optional or required.
@@ -117,6 +120,7 @@ tests/cases/compiler/giant.ts(293,12): error TS2300: Duplicate identifier 'tgF'.
117120
tests/cases/compiler/giant.ts(294,16): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
118121
tests/cases/compiler/giant.ts(294,16): error TS2300: Duplicate identifier 'tgF'.
119122
tests/cases/compiler/giant.ts(319,5): error TS1169: Computed property names are not allowed in interfaces.
123+
tests/cases/compiler/giant.ts(319,6): error TS2304: Cannot find name 'p'.
120124
tests/cases/compiler/giant.ts(320,5): error TS1021: An index signature must have a type annotation.
121125
tests/cases/compiler/giant.ts(321,6): error TS1096: An index signature must have exactly one parameter.
122126
tests/cases/compiler/giant.ts(334,5): error TS2386: Overload signatures must all be optional or required.
@@ -139,6 +143,7 @@ tests/cases/compiler/giant.ts(357,16): error TS2300: Duplicate identifier 'tgF'.
139143
tests/cases/compiler/giant.ts(358,20): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
140144
tests/cases/compiler/giant.ts(358,20): error TS2300: Duplicate identifier 'tgF'.
141145
tests/cases/compiler/giant.ts(383,9): error TS1169: Computed property names are not allowed in interfaces.
146+
tests/cases/compiler/giant.ts(383,10): error TS2304: Cannot find name 'p'.
142147
tests/cases/compiler/giant.ts(384,9): error TS1021: An index signature must have a type annotation.
143148
tests/cases/compiler/giant.ts(385,10): error TS1096: An index signature must have exactly one parameter.
144149
tests/cases/compiler/giant.ts(398,9): error TS2386: Overload signatures must all be optional or required.
@@ -162,6 +167,7 @@ tests/cases/compiler/giant.ts(436,16): error TS2300: Duplicate identifier 'tgF'.
162167
tests/cases/compiler/giant.ts(437,20): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
163168
tests/cases/compiler/giant.ts(437,20): error TS2300: Duplicate identifier 'tgF'.
164169
tests/cases/compiler/giant.ts(462,9): error TS1169: Computed property names are not allowed in interfaces.
170+
tests/cases/compiler/giant.ts(462,10): error TS2304: Cannot find name 'p'.
165171
tests/cases/compiler/giant.ts(463,9): error TS1021: An index signature must have a type annotation.
166172
tests/cases/compiler/giant.ts(464,10): error TS1096: An index signature must have exactly one parameter.
167173
tests/cases/compiler/giant.ts(477,9): error TS2386: Overload signatures must all be optional or required.
@@ -233,6 +239,7 @@ tests/cases/compiler/giant.ts(558,24): error TS1184: An implementation cannot be
233239
tests/cases/compiler/giant.ts(561,21): error TS1184: An implementation cannot be declared in ambient contexts.
234240
tests/cases/compiler/giant.ts(563,21): error TS1184: An implementation cannot be declared in ambient contexts.
235241
tests/cases/compiler/giant.ts(587,9): error TS1169: Computed property names are not allowed in interfaces.
242+
tests/cases/compiler/giant.ts(587,10): error TS2304: Cannot find name 'p'.
236243
tests/cases/compiler/giant.ts(588,9): error TS1021: An index signature must have a type annotation.
237244
tests/cases/compiler/giant.ts(589,10): error TS1096: An index signature must have exactly one parameter.
238245
tests/cases/compiler/giant.ts(602,9): error TS2386: Overload signatures must all be optional or required.
@@ -249,6 +256,7 @@ tests/cases/compiler/giant.ts(623,24): error TS1184: An implementation cannot be
249256
tests/cases/compiler/giant.ts(626,21): error TS1184: An implementation cannot be declared in ambient contexts.
250257
tests/cases/compiler/giant.ts(628,21): error TS1184: An implementation cannot be declared in ambient contexts.
251258
tests/cases/compiler/giant.ts(653,9): error TS1169: Computed property names are not allowed in interfaces.
259+
tests/cases/compiler/giant.ts(653,10): error TS2304: Cannot find name 'p'.
252260
tests/cases/compiler/giant.ts(654,9): error TS1021: An index signature must have a type annotation.
253261
tests/cases/compiler/giant.ts(655,10): error TS1096: An index signature must have exactly one parameter.
254262
tests/cases/compiler/giant.ts(668,9): error TS2386: Overload signatures must all be optional or required.
@@ -257,7 +265,7 @@ tests/cases/compiler/giant.ts(672,25): error TS1036: Statements are not allowed
257265
tests/cases/compiler/giant.ts(676,30): error TS1184: An implementation cannot be declared in ambient contexts.
258266

259267

260-
==== tests/cases/compiler/giant.ts (257 errors) ====
268+
==== tests/cases/compiler/giant.ts (265 errors) ====
261269

262270
/*
263271
Prefixes
@@ -357,6 +365,8 @@ tests/cases/compiler/giant.ts(676,30): error TS1184: An implementation cannot be
357365
[p];
358366
~~~
359367
!!! error TS1169: Computed property names are not allowed in interfaces.
368+
~
369+
!!! error TS2304: Cannot find name 'p'.
360370
[p1: string];
361371
~~~~~~~~~~~~~
362372
!!! error TS1021: An index signature must have a type annotation.
@@ -465,6 +475,8 @@ tests/cases/compiler/giant.ts(676,30): error TS1184: An implementation cannot be
465475
[p];
466476
~~~
467477
!!! error TS1169: Computed property names are not allowed in interfaces.
478+
~
479+
!!! error TS2304: Cannot find name 'p'.
468480
[p1: string];
469481
~~~~~~~~~~~~~
470482
!!! error TS1021: An index signature must have a type annotation.
@@ -590,6 +602,8 @@ tests/cases/compiler/giant.ts(676,30): error TS1184: An implementation cannot be
590602
[p];
591603
~~~
592604
!!! error TS1169: Computed property names are not allowed in interfaces.
605+
~
606+
!!! error TS2304: Cannot find name 'p'.
593607
[p1: string];
594608
~~~~~~~~~~~~~
595609
!!! error TS1021: An index signature must have a type annotation.
@@ -815,6 +829,8 @@ tests/cases/compiler/giant.ts(676,30): error TS1184: An implementation cannot be
815829
[p];
816830
~~~
817831
!!! error TS1169: Computed property names are not allowed in interfaces.
832+
~
833+
!!! error TS2304: Cannot find name 'p'.
818834
[p1: string];
819835
~~~~~~~~~~~~~
820836
!!! error TS1021: An index signature must have a type annotation.
@@ -923,6 +939,8 @@ tests/cases/compiler/giant.ts(676,30): error TS1184: An implementation cannot be
923939
[p];
924940
~~~
925941
!!! error TS1169: Computed property names are not allowed in interfaces.
942+
~
943+
!!! error TS2304: Cannot find name 'p'.
926944
[p1: string];
927945
~~~~~~~~~~~~~
928946
!!! error TS1021: An index signature must have a type annotation.
@@ -1048,6 +1066,8 @@ tests/cases/compiler/giant.ts(676,30): error TS1184: An implementation cannot be
10481066
[p];
10491067
~~~
10501068
!!! error TS1169: Computed property names are not allowed in interfaces.
1069+
~
1070+
!!! error TS2304: Cannot find name 'p'.
10511071
[p1: string];
10521072
~~~~~~~~~~~~~
10531073
!!! error TS1021: An index signature must have a type annotation.
@@ -1315,6 +1335,8 @@ tests/cases/compiler/giant.ts(676,30): error TS1184: An implementation cannot be
13151335
[p];
13161336
~~~
13171337
!!! error TS1169: Computed property names are not allowed in interfaces.
1338+
~
1339+
!!! error TS2304: Cannot find name 'p'.
13181340
[p1: string];
13191341
~~~~~~~~~~~~~
13201342
!!! error TS1021: An index signature must have a type annotation.
@@ -1413,6 +1435,8 @@ tests/cases/compiler/giant.ts(676,30): error TS1184: An implementation cannot be
14131435
[p];
14141436
~~~
14151437
!!! error TS1169: Computed property names are not allowed in interfaces.
1438+
~
1439+
!!! error TS2304: Cannot find name 'p'.
14161440
[p1: string];
14171441
~~~~~~~~~~~~~
14181442
!!! error TS1021: An index signature must have a type annotation.

tests/baselines/reference/indexSignatureMustHaveTypeAnnotation.errors.txt

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,31 @@
1-
tests/cases/compiler/indexSignatureMustHaveTypeAnnotation.ts(2,5): error TS1169: Computed property names are not allowed in interfaces.
2-
tests/cases/compiler/indexSignatureMustHaveTypeAnnotation.ts(3,5): error TS1021: An index signature must have a type annotation.
3-
tests/cases/compiler/indexSignatureMustHaveTypeAnnotation.ts(7,5): error TS1166: Computed property names are not allowed in class property declarations.
4-
tests/cases/compiler/indexSignatureMustHaveTypeAnnotation.ts(12,5): error TS1021: An index signature must have a type annotation.
1+
tests/cases/compiler/indexSignatureMustHaveTypeAnnotation.ts(3,5): error TS1169: Computed property names are not allowed in interfaces.
2+
tests/cases/compiler/indexSignatureMustHaveTypeAnnotation.ts(3,6): error TS2304: Cannot find name 'x'.
3+
tests/cases/compiler/indexSignatureMustHaveTypeAnnotation.ts(4,5): error TS1021: An index signature must have a type annotation.
4+
tests/cases/compiler/indexSignatureMustHaveTypeAnnotation.ts(9,5): error TS1166: Computed property names are not allowed in class property declarations.
5+
tests/cases/compiler/indexSignatureMustHaveTypeAnnotation.ts(9,6): error TS2304: Cannot find name 'x'.
6+
tests/cases/compiler/indexSignatureMustHaveTypeAnnotation.ts(14,5): error TS1021: An index signature must have a type annotation.
57

68

7-
==== tests/cases/compiler/indexSignatureMustHaveTypeAnnotation.ts (4 errors) ====
9+
==== tests/cases/compiler/indexSignatureMustHaveTypeAnnotation.ts (6 errors) ====
810
interface I {
11+
// Used to be indexer, now it is a computed property
912
[x]: string;
1013
~~~
1114
!!! error TS1169: Computed property names are not allowed in interfaces.
15+
~
16+
!!! error TS2304: Cannot find name 'x'.
1217
[x: string];
1318
~~~~~~~~~~~~
1419
!!! error TS1021: An index signature must have a type annotation.
1520
}
1621

1722
class C {
23+
// Used to be indexer, now it is a computed property
1824
[x]: string
1925
~~~
2026
!!! error TS1166: Computed property names are not allowed in class property declarations.
27+
~
28+
!!! error TS2304: Cannot find name 'x'.
2129

2230
}
2331

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,23 @@
1-
tests/cases/compiler/indexSignatureWithInitializer.ts(2,5): error TS1169: Computed property names are not allowed in interfaces.
2-
tests/cases/compiler/indexSignatureWithInitializer.ts(6,5): error TS1166: Computed property names are not allowed in class property declarations.
1+
tests/cases/compiler/indexSignatureWithInitializer.ts(3,5): error TS1169: Computed property names are not allowed in interfaces.
2+
tests/cases/compiler/indexSignatureWithInitializer.ts(3,6): error TS2304: Cannot find name 'x'.
3+
tests/cases/compiler/indexSignatureWithInitializer.ts(7,5): error TS1166: Computed property names are not allowed in class property declarations.
4+
tests/cases/compiler/indexSignatureWithInitializer.ts(7,6): error TS2304: Cannot find name 'x'.
35

46

5-
==== tests/cases/compiler/indexSignatureWithInitializer.ts (2 errors) ====
7+
==== tests/cases/compiler/indexSignatureWithInitializer.ts (4 errors) ====
8+
// These used to be indexers, now they are computed properties
69
interface I {
710
[x = '']: string;
811
~~~~~~~~
912
!!! error TS1169: Computed property names are not allowed in interfaces.
13+
~
14+
!!! error TS2304: Cannot find name 'x'.
1015
}
1116

1217
class C {
1318
[x = 0]: string
1419
~~~~~~~
1520
!!! error TS1166: Computed property names are not allowed in class property declarations.
21+
~
22+
!!! error TS2304: Cannot find name 'x'.
1623
}
Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
1-
tests/cases/compiler/indexWithoutParamType2.ts(2,5): error TS1166: Computed property names are not allowed in class property declarations.
1+
tests/cases/compiler/indexWithoutParamType2.ts(3,5): error TS1166: Computed property names are not allowed in class property declarations.
2+
tests/cases/compiler/indexWithoutParamType2.ts(3,6): error TS2304: Cannot find name 'x'.
23

34

4-
==== tests/cases/compiler/indexWithoutParamType2.ts (1 errors) ====
5+
==== tests/cases/compiler/indexWithoutParamType2.ts (2 errors) ====
56
class C {
7+
// Used to be indexer, now it is a computed property
68
[x]: string
79
~~~
810
!!! error TS1166: Computed property names are not allowed in class property declarations.
11+
~
12+
!!! error TS2304: Cannot find name 'x'.
913
}

0 commit comments

Comments
 (0)