Skip to content

Commit a5d60c7

Browse files
committed
Accept new baselines
1 parent f5c2297 commit a5d60c7

8 files changed

+50
-29
lines changed

testdata/baselines/reference/submodule/compiler/jsFileCompilationConstructorOverloadSyntax.errors.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ a.js(2,3): error TS8017: Signature declarations can only be used in TypeScript f
44
==== a.js (1 errors) ====
55
class A {
66
constructor();
7-
~~~~~~~~~~~
7+
~~~~~~~~~~~~~~
88
!!! error TS8017: Signature declarations can only be used in TypeScript files.
99
}
1010

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
a.js(1,10): error TS8017: Signature declarations can only be used in TypeScript files.
1+
a.js(1,1): error TS8017: Signature declarations can only be used in TypeScript files.
22

33

44
==== a.js (1 errors) ====
55
function foo();
6-
~~~
6+
~~~~~~~~~~~~~~~
77
!!! error TS8017: Signature declarations can only be used in TypeScript files.
88

testdata/baselines/reference/submodule/compiler/jsFileCompilationMethodOverloadSyntax.errors.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ a.js(2,3): error TS8017: Signature declarations can only be used in TypeScript f
44
==== a.js (1 errors) ====
55
class A {
66
foo();
7-
~~~
7+
~~~~~~
88
!!! error TS8017: Signature declarations can only be used in TypeScript files.
99
}
1010

testdata/baselines/reference/submodule/conformance/plainJSGrammarErrors.errors.txt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ plainJSGrammarErrors.js(26,11): error TS1030: 'async' modifier already seen.
1313
plainJSGrammarErrors.js(28,11): error TS1029: 'static' modifier must precede 'async' modifier.
1414
plainJSGrammarErrors.js(29,5): error TS1031: 'export' modifier cannot appear on class elements of this kind.
1515
plainJSGrammarErrors.js(30,5): error TS1031: 'export' modifier cannot appear on class elements of this kind.
16-
plainJSGrammarErrors.js(34,9): error TS8017: Signature declarations can only be used in TypeScript files.
16+
plainJSGrammarErrors.js(34,5): error TS8017: Signature declarations can only be used in TypeScript files.
1717
plainJSGrammarErrors.js(34,22): error TS1005: '{' expected.
1818
plainJSGrammarErrors.js(35,9): error TS1054: A 'get' accessor cannot have parameters.
1919
plainJSGrammarErrors.js(36,9): error TS1049: A 'set' accessor must have exactly one parameter.
@@ -66,6 +66,7 @@ plainJSGrammarErrors.js(105,5): error TS18016: Private identifiers are not allow
6666
plainJSGrammarErrors.js(106,5): error TS1042: 'export' modifier cannot be used here.
6767
plainJSGrammarErrors.js(108,25): error TS1162: An object member cannot be declared optional.
6868
plainJSGrammarErrors.js(109,6): error TS1162: An object member cannot be declared optional.
69+
plainJSGrammarErrors.js(109,6): error TS8009: The '?' modifier can only be used in TypeScript files.
6970
plainJSGrammarErrors.js(110,15): error TS1255: A definite assignment assertion '!' is not permitted in this context.
7071
plainJSGrammarErrors.js(111,19): error TS1255: A definite assignment assertion '!' is not permitted in this context.
7172
plainJSGrammarErrors.js(114,16): error TS1312: Did you mean to use a ':'? An '=' can only follow a property name when the containing object literal is part of a destructuring pattern.
@@ -100,7 +101,7 @@ plainJSGrammarErrors.js(204,30): message TS1450: Dynamic imports can only accept
100101
plainJSGrammarErrors.js(205,36): error TS1325: Argument of dynamic import cannot be spread element.
101102

102103

103-
==== plainJSGrammarErrors.js (100 errors) ====
104+
==== plainJSGrammarErrors.js (101 errors) ====
104105
class C {
105106
// #private mistakes
106107
q = #unbound
@@ -165,7 +166,7 @@ plainJSGrammarErrors.js(205,36): error TS1325: Argument of dynamic import cannot
165166

166167
// accessor mistakes
167168
get incorporeal();
168-
~~~~~~~~~~~
169+
~~~~~~~~~~~~~~~~~~
169170
!!! error TS8017: Signature declarations can only be used in TypeScript files.
170171
~
171172
!!! error TS1005: '{' expected.
@@ -346,6 +347,8 @@ plainJSGrammarErrors.js(205,36): error TS1325: Argument of dynamic import cannot
346347
m?() { return 12 },
347348
~
348349
!!! error TS1162: An object member cannot be declared optional.
350+
~
351+
!!! error TS8009: The '?' modifier can only be used in TypeScript files.
349352
definitely!,
350353
~
351354
!!! error TS1255: A definite assignment assertion '!' is not permitted in this context.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
--- old.jsFileCompilationConstructorOverloadSyntax.errors.txt
2+
+++ new.jsFileCompilationConstructorOverloadSyntax.errors.txt
3+
@@= skipped -3, +3 lines =@@
4+
==== a.js (1 errors) ====
5+
class A {
6+
constructor();
7+
- ~~~~~~~~~~~
8+
+ ~~~~~~~~~~~~~~
9+
!!! error TS8017: Signature declarations can only be used in TypeScript files.
10+
}
11+
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
--- old.jsFileCompilationFunctionOverloadSyntax.errors.txt
2+
+++ new.jsFileCompilationFunctionOverloadSyntax.errors.txt
3+
@@= skipped -0, +0 lines =@@
4+
-a.js(1,10): error TS8017: Signature declarations can only be used in TypeScript files.
5+
+a.js(1,1): error TS8017: Signature declarations can only be used in TypeScript files.
6+
7+
8+
==== a.js (1 errors) ====
9+
function foo();
10+
- ~~~
11+
+ ~~~~~~~~~~~~~~~
12+
!!! error TS8017: Signature declarations can only be used in TypeScript files.
13+
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
--- old.jsFileCompilationMethodOverloadSyntax.errors.txt
2+
+++ new.jsFileCompilationMethodOverloadSyntax.errors.txt
3+
@@= skipped -3, +3 lines =@@
4+
==== a.js (1 errors) ====
5+
class A {
6+
foo();
7+
- ~~~
8+
+ ~~~~~~
9+
!!! error TS8017: Signature declarations can only be used in TypeScript files.
10+
}
11+

testdata/baselines/reference/submoduleAccepted/conformance/plainJSGrammarErrors.errors.txt.diff

Lines changed: 5 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
plainJSGrammarErrors.js(29,5): error TS1031: 'export' modifier cannot appear on class elements of this kind.
77
-plainJSGrammarErrors.js(29,5): error TS8009: The 'export' modifier can only be used in TypeScript files.
88
plainJSGrammarErrors.js(30,5): error TS1031: 'export' modifier cannot appear on class elements of this kind.
9-
+plainJSGrammarErrors.js(34,9): error TS8017: Signature declarations can only be used in TypeScript files.
9+
+plainJSGrammarErrors.js(34,5): error TS8017: Signature declarations can only be used in TypeScript files.
1010
plainJSGrammarErrors.js(34,22): error TS1005: '{' expected.
1111
plainJSGrammarErrors.js(35,9): error TS1054: A 'get' accessor cannot have parameters.
1212
plainJSGrammarErrors.js(36,9): error TS1049: A 'set' accessor must have exactly one parameter.
@@ -18,20 +18,12 @@
1818
plainJSGrammarErrors.js(64,1): error TS1042: 'async' modifier cannot be used here.
1919
plainJSGrammarErrors.js(65,1): error TS1042: 'async' modifier cannot be used here.
2020
plainJSGrammarErrors.js(66,1): error TS1042: 'async' modifier cannot be used here.
21-
@@= skipped -29, +28 lines =@@
22-
plainJSGrammarErrors.js(106,5): error TS1042: 'export' modifier cannot be used here.
23-
plainJSGrammarErrors.js(108,25): error TS1162: An object member cannot be declared optional.
24-
plainJSGrammarErrors.js(109,6): error TS1162: An object member cannot be declared optional.
25-
-plainJSGrammarErrors.js(109,6): error TS8009: The '?' modifier can only be used in TypeScript files.
26-
plainJSGrammarErrors.js(110,15): error TS1255: A definite assignment assertion '!' is not permitted in this context.
27-
plainJSGrammarErrors.js(111,19): error TS1255: A definite assignment assertion '!' is not permitted in this context.
28-
plainJSGrammarErrors.js(114,16): error TS1312: Did you mean to use a ':'? An '=' can only follow a property name when the containing object literal is part of a destructuring pattern.
29-
@@= skipped -35, +34 lines =@@
21+
@@= skipped -64, +63 lines =@@
3022
plainJSGrammarErrors.js(205,36): error TS1325: Argument of dynamic import cannot be spread element.
3123

3224

3325
-==== plainJSGrammarErrors.js (102 errors) ====
34-
+==== plainJSGrammarErrors.js (100 errors) ====
26+
+==== plainJSGrammarErrors.js (101 errors) ====
3527
class C {
3628
// #private mistakes
3729
q = #unbound
@@ -48,7 +40,7 @@
4840

4941
// accessor mistakes
5042
get incorporeal();
51-
+ ~~~~~~~~~~~
43+
+ ~~~~~~~~~~~~~~~~~~
5244
+!!! error TS8017: Signature declarations can only be used in TypeScript files.
5345
~
5446
!!! error TS1005: '{' expected.
@@ -61,13 +53,4 @@
6153
-!!! error TS8009: The 'async' modifier can only be used in TypeScript files.
6254
}
6355
async const cantAsyncConst = 2
64-
~~~~~
65-
@@= skipped -105, +103 lines =@@
66-
m?() { return 12 },
67-
~
68-
!!! error TS1162: An object member cannot be declared optional.
69-
- ~
70-
-!!! error TS8009: The '?' modifier can only be used in TypeScript files.
71-
definitely!,
72-
~
73-
!!! error TS1255: A definite assignment assertion '!' is not permitted in this context.
56+
~~~~~

0 commit comments

Comments
 (0)