Skip to content

Commit ce216c3

Browse files
committed
baseline-accept
1 parent fbb2f79 commit ce216c3

7 files changed

+21
-26
lines changed

tests/baselines/reference/assignmentLHSIsValue.errors.txt

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,14 @@ tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(2
1313
tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(30,1): error TS2364: The left-hand side of an assignment expression must be a variable or a property access.
1414
tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(31,1): error TS2364: The left-hand side of an assignment expression must be a variable or a property access.
1515
tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(32,1): error TS2364: The left-hand side of an assignment expression must be a variable or a property access.
16-
tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(35,9): error TS2809: Declaration or statement expected. This '=' follows a block of statements, so if you intended to write a destructuring assignment, you might need to wrap the the whole assignment in parentheses.
16+
tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(35,9): error TS1128: Declaration or statement expected.
1717
tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(38,2): error TS2364: The left-hand side of an assignment expression must be a variable or a property access.
1818
tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(38,6): error TS2364: The left-hand side of an assignment expression must be a variable or a property access.
1919
tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(42,36): error TS1034: 'super' must be followed by an argument list or member access.
2020
tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(44,19): error TS1034: 'super' must be followed by an argument list or member access.
2121
tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(46,27): error TS1034: 'super' must be followed by an argument list or member access.
22-
tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(50,20): error TS2809: Declaration or statement expected. This '=' follows a block of statements, so if you intended to write a destructuring assignment, you might need to wrap the the whole assignment in parentheses.
23-
tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(51,11): error TS2809: Declaration or statement expected. This '=' follows a block of statements, so if you intended to write a destructuring assignment, you might need to wrap the the whole assignment in parentheses.
24-
tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(51,13): error TS1005: ';' expected.
22+
tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(50,20): error TS1128: Declaration or statement expected.
23+
tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(51,11): error TS1005: ';' expected.
2524
tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(54,1): error TS2364: The left-hand side of an assignment expression must be a variable or a property access.
2625
tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(57,1): error TS2364: The left-hand side of an assignment expression must be a variable or a property access.
2726
tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(58,2): error TS2631: Cannot assign to 'M' because it is a namespace.
@@ -39,7 +38,7 @@ tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(6
3938
tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(70,1): error TS2364: The left-hand side of an assignment expression must be a variable or a property access.
4039

4140

42-
==== tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts (39 errors) ====
41+
==== tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts (38 errors) ====
4342
// expected error for all the LHS of assignments
4443
var value: any;
4544

@@ -106,7 +105,7 @@ tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(7
106105
// object literals
107106
{ a: 0} = value;
108107
~
109-
!!! error TS2809: Declaration or statement expected. This '=' follows a block of statements, so if you intended to write a destructuring assignment, you might need to wrap the the whole assignment in parentheses.
108+
!!! error TS1128: Declaration or statement expected.
110109

111110
// array literals
112111
['', ''] = value;
@@ -133,11 +132,9 @@ tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(7
133132
// function expression
134133
function bar() { } = value;
135134
~
136-
!!! error TS2809: Declaration or statement expected. This '=' follows a block of statements, so if you intended to write a destructuring assignment, you might need to wrap the the whole assignment in parentheses.
135+
!!! error TS1128: Declaration or statement expected.
137136
() => { } = value;
138137
~
139-
!!! error TS2809: Declaration or statement expected. This '=' follows a block of statements, so if you intended to write a destructuring assignment, you might need to wrap the the whole assignment in parentheses.
140-
~~~~~
141138
!!! error TS1005: ';' expected.
142139

143140
// function calls

tests/baselines/reference/assignmentLHSIsValue.types

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ function bar() { } = value;
146146
>value : any
147147

148148
() => { } = value;
149-
>() => { } = : () => void
149+
>() => { } : () => void
150150
>value : any
151151

152152
// function calls

tests/baselines/reference/destructionAssignmentError.errors.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
tests/cases/compiler/destructionAssignmentError.ts(6,3): error TS2695: Left side of comma operator is unused and has no side effects.
2-
tests/cases/compiler/destructionAssignmentError.ts(6,10): error TS2809: Declaration or statement expected. This '=' follows a block of statements, so if you intended to write a destructuring assignment, you might need to wrap the the whole assignment in parentheses.
2+
tests/cases/compiler/destructionAssignmentError.ts(6,10): error TS1128: Declaration or statement expected.
33
tests/cases/compiler/destructionAssignmentError.ts(11,3): error TS2695: Left side of comma operator is unused and has no side effects.
4-
tests/cases/compiler/destructionAssignmentError.ts(12,1): error TS2809: Declaration or statement expected. This '=' follows a block of statements, so if you intended to write a destructuring assignment, you might need to wrap the the whole assignment in parentheses.
4+
tests/cases/compiler/destructionAssignmentError.ts(12,1): error TS1128: Declaration or statement expected.
55

66

77
==== tests/cases/compiler/destructionAssignmentError.ts (4 errors) ====
@@ -14,7 +14,7 @@ tests/cases/compiler/destructionAssignmentError.ts(12,1): error TS2809: Declarat
1414
~
1515
!!! error TS2695: Left side of comma operator is unused and has no side effects.
1616
~
17-
!!! error TS2809: Declaration or statement expected. This '=' follows a block of statements, so if you intended to write a destructuring assignment, you might need to wrap the the whole assignment in parentheses.
17+
!!! error TS1128: Declaration or statement expected.
1818

1919
({ a, b } =
2020
fn());
@@ -24,4 +24,4 @@ tests/cases/compiler/destructionAssignmentError.ts(12,1): error TS2809: Declarat
2424
!!! error TS2695: Left side of comma operator is unused and has no side effects.
2525
= fn();
2626
~
27-
!!! error TS2809: Declaration or statement expected. This '=' follows a block of statements, so if you intended to write a destructuring assignment, you might need to wrap the the whole assignment in parentheses.
27+
!!! error TS1128: Declaration or statement expected.

tests/baselines/reference/typedefOnStatements.errors.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ tests/cases/conformance/jsdoc/typedefOnStatements.js(26,1): error TS1105: A 'bre
22
tests/cases/conformance/jsdoc/typedefOnStatements.js(31,1): error TS1104: A 'continue' statement can only be used within an enclosing iteration statement.
33
tests/cases/conformance/jsdoc/typedefOnStatements.js(33,1): error TS1101: 'with' statements are not allowed in strict mode.
44
tests/cases/conformance/jsdoc/typedefOnStatements.js(33,1): error TS2410: The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'.
5+
tests/cases/conformance/jsdoc/typedefOnStatements.js(55,12): error TS2304: Cannot find name 'C'.
56

67

7-
==== tests/cases/conformance/jsdoc/typedefOnStatements.js (4 errors) ====
8+
==== tests/cases/conformance/jsdoc/typedefOnStatements.js (5 errors) ====
89
/** @typedef {{a: string}} A */
910
;
1011
/** @typedef {{ b: string }} B */
@@ -68,6 +69,8 @@ tests/cases/conformance/jsdoc/typedefOnStatements.js(33,1): error TS2410: The 'w
6869
* @param {A} a
6970
* @param {B} b
7071
* @param {C} c
72+
~
73+
!!! error TS2304: Cannot find name 'C'.
7174
* @param {D} d
7275
* @param {E} e
7376
* @param {F} f

tests/baselines/reference/typedefOnStatements.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -177,16 +177,13 @@ function proof(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q) {
177177
* @param {P} p
178178
* @param {Q} q
179179
*/
180-
declare function proof(a: A, b: B, c: C, d: D, e: E, f: F, g: G, h: H, i: I, j: J, k: K, l: L, m: M, n: N, o: O, p: P, q: Q): void;
180+
declare function proof(a: A, b: B, c: any, d: D, e: E, f: F, g: G, h: H, i: I, j: J, k: K, l: L, m: M, n: N, o: O, p: P, q: Q): void;
181181
type A = {
182182
a: string;
183183
};
184184
type B = {
185185
b: string;
186186
};
187-
type C = {
188-
c: string;
189-
};
190187
type D = {
191188
d: string;
192189
};

tests/baselines/reference/typedefOnStatements.symbols

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,7 @@ function proof (a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q) {
105105
>b.b : Symbol(b, Decl(typedefOnStatements.js, 2, 15))
106106
>b : Symbol(b, Decl(typedefOnStatements.js, 70, 18))
107107
>b : Symbol(b, Decl(typedefOnStatements.js, 2, 15))
108-
>c.c : Symbol(c, Decl(typedefOnStatements.js, 4, 15))
109108
>c : Symbol(c, Decl(typedefOnStatements.js, 70, 20))
110-
>c : Symbol(c, Decl(typedefOnStatements.js, 4, 15))
111109
>d.d : Symbol(d, Decl(typedefOnStatements.js, 7, 15))
112110
>d : Symbol(d, Decl(typedefOnStatements.js, 70, 22))
113111
>d : Symbol(d, Decl(typedefOnStatements.js, 7, 15))

tests/baselines/reference/typedefOnStatements.types

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,10 @@ catch (e) {
9191
* @param {Q} q
9292
*/
9393
function proof (a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q) {
94-
>proof : (a: A, b: B, c: C, d: D, e: E, f: F, g: G, h: H, i: I, j: J, k: K, l: L, m: M, n: N, o: O, p: P, q: Q) => void
94+
>proof : (a: A, b: B, c: any, d: D, e: E, f: F, g: G, h: H, i: I, j: J, k: K, l: L, m: M, n: N, o: O, p: P, q: Q) => void
9595
>a : A
9696
>b : B
97-
>c : C
97+
>c : any
9898
>d : D
9999
>e : E
100100
>f : F
@@ -121,9 +121,9 @@ function proof (a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q) {
121121
>b.b : string
122122
>b : B
123123
>b : string
124-
>c.c : string
125-
>c : C
126-
>c : string
124+
>c.c : any
125+
>c : any
126+
>c : any
127127
>d.d : string
128128
>d : D
129129
>d : string

0 commit comments

Comments
 (0)