Skip to content

Commit

Permalink
baseline-accept
Browse files Browse the repository at this point in the history
  • Loading branch information
jessetrinity committed May 19, 2021
1 parent fbb2f79 commit ce216c3
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 26 deletions.
15 changes: 6 additions & 9 deletions tests/baselines/reference/assignmentLHSIsValue.errors.txt
Expand Up @@ -13,15 +13,14 @@ tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(2
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.
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.
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.
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.
tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(35,9): error TS1128: Declaration or statement expected.
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.
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.
tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(42,36): error TS1034: 'super' must be followed by an argument list or member access.
tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(44,19): error TS1034: 'super' must be followed by an argument list or member access.
tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(46,27): error TS1034: 'super' must be followed by an argument list or member access.
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.
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.
tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(51,13): error TS1005: ';' expected.
tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(50,20): error TS1128: Declaration or statement expected.
tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(51,11): error TS1005: ';' expected.
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.
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.
tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(58,2): error TS2631: Cannot assign to 'M' because it is a namespace.
Expand All @@ -39,7 +38,7 @@ tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(6
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.


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

Expand Down Expand Up @@ -106,7 +105,7 @@ tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(7
// object literals
{ a: 0} = value;
~
!!! 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.
!!! error TS1128: Declaration or statement expected.

// array literals
['', ''] = value;
Expand All @@ -133,11 +132,9 @@ tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(7
// function expression
function bar() { } = value;
~
!!! 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.
!!! error TS1128: Declaration or statement expected.
() => { } = value;
~
!!! 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.
~~~~~
!!! error TS1005: ';' expected.

// function calls
Expand Down
2 changes: 1 addition & 1 deletion tests/baselines/reference/assignmentLHSIsValue.types
Expand Up @@ -146,7 +146,7 @@ function bar() { } = value;
>value : any

() => { } = value;
>() => { } = : () => void
>() => { } : () => void
>value : any

// function calls
Expand Down
@@ -1,7 +1,7 @@
tests/cases/compiler/destructionAssignmentError.ts(6,3): error TS2695: Left side of comma operator is unused and has no side effects.
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.
tests/cases/compiler/destructionAssignmentError.ts(6,10): error TS1128: Declaration or statement expected.
tests/cases/compiler/destructionAssignmentError.ts(11,3): error TS2695: Left side of comma operator is unused and has no side effects.
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.
tests/cases/compiler/destructionAssignmentError.ts(12,1): error TS1128: Declaration or statement expected.


==== tests/cases/compiler/destructionAssignmentError.ts (4 errors) ====
Expand All @@ -14,7 +14,7 @@ tests/cases/compiler/destructionAssignmentError.ts(12,1): error TS2809: Declarat
~
!!! error TS2695: Left side of comma operator is unused and has no side effects.
~
!!! 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.
!!! error TS1128: Declaration or statement expected.

({ a, b } =
fn());
Expand All @@ -24,4 +24,4 @@ tests/cases/compiler/destructionAssignmentError.ts(12,1): error TS2809: Declarat
!!! error TS2695: Left side of comma operator is unused and has no side effects.
= fn();
~
!!! 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.
!!! error TS1128: Declaration or statement expected.
5 changes: 4 additions & 1 deletion tests/baselines/reference/typedefOnStatements.errors.txt
Expand Up @@ -2,9 +2,10 @@ tests/cases/conformance/jsdoc/typedefOnStatements.js(26,1): error TS1105: A 'bre
tests/cases/conformance/jsdoc/typedefOnStatements.js(31,1): error TS1104: A 'continue' statement can only be used within an enclosing iteration statement.
tests/cases/conformance/jsdoc/typedefOnStatements.js(33,1): error TS1101: 'with' statements are not allowed in strict mode.
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'.
tests/cases/conformance/jsdoc/typedefOnStatements.js(55,12): error TS2304: Cannot find name 'C'.


==== tests/cases/conformance/jsdoc/typedefOnStatements.js (4 errors) ====
==== tests/cases/conformance/jsdoc/typedefOnStatements.js (5 errors) ====
/** @typedef {{a: string}} A */
;
/** @typedef {{ b: string }} B */
Expand Down Expand Up @@ -68,6 +69,8 @@ tests/cases/conformance/jsdoc/typedefOnStatements.js(33,1): error TS2410: The 'w
* @param {A} a
* @param {B} b
* @param {C} c
~
!!! error TS2304: Cannot find name 'C'.
* @param {D} d
* @param {E} e
* @param {F} f
Expand Down
5 changes: 1 addition & 4 deletions tests/baselines/reference/typedefOnStatements.js
Expand Up @@ -177,16 +177,13 @@ function proof(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q) {
* @param {P} p
* @param {Q} q
*/
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;
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;
type A = {
a: string;
};
type B = {
b: string;
};
type C = {
c: string;
};
type D = {
d: string;
};
Expand Down
2 changes: 0 additions & 2 deletions tests/baselines/reference/typedefOnStatements.symbols
Expand Up @@ -105,9 +105,7 @@ function proof (a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q) {
>b.b : Symbol(b, Decl(typedefOnStatements.js, 2, 15))
>b : Symbol(b, Decl(typedefOnStatements.js, 70, 18))
>b : Symbol(b, Decl(typedefOnStatements.js, 2, 15))
>c.c : Symbol(c, Decl(typedefOnStatements.js, 4, 15))
>c : Symbol(c, Decl(typedefOnStatements.js, 70, 20))
>c : Symbol(c, Decl(typedefOnStatements.js, 4, 15))
>d.d : Symbol(d, Decl(typedefOnStatements.js, 7, 15))
>d : Symbol(d, Decl(typedefOnStatements.js, 70, 22))
>d : Symbol(d, Decl(typedefOnStatements.js, 7, 15))
Expand Down
10 changes: 5 additions & 5 deletions tests/baselines/reference/typedefOnStatements.types
Expand Up @@ -91,10 +91,10 @@ catch (e) {
* @param {Q} q
*/
function proof (a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q) {
>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
>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
>a : A
>b : B
>c : C
>c : any
>d : D
>e : E
>f : F
Expand All @@ -121,9 +121,9 @@ function proof (a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q) {
>b.b : string
>b : B
>b : string
>c.c : string
>c : C
>c : string
>c.c : any
>c : any
>c : any
>d.d : string
>d : D
>d : string
Expand Down

0 comments on commit ce216c3

Please sign in to comment.