This was we don't get noisy baselines just because a different phase of the compiler reported the diagnostic. This helps with Yui's refactoring work to move grammar checks into the type checker.
187 lines
No EOL
10 KiB
Text
187 lines
No EOL
10 KiB
Text
tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(6,21): error TS2364: Invalid left-hand side of assignment expression.
|
|
tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(7,13): error TS2364: Invalid left-hand side of assignment expression.
|
|
tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(8,21): error TS2364: Invalid left-hand side of assignment expression.
|
|
tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(11,18): error TS2364: Invalid left-hand side of assignment expression.
|
|
tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(13,1): error TS2364: Invalid left-hand side of assignment expression.
|
|
tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(17,1): error TS2364: Invalid left-hand side of assignment expression.
|
|
tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(19,1): error TS2364: Invalid left-hand side of assignment expression.
|
|
tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(22,1): error TS2364: Invalid left-hand side of assignment expression.
|
|
tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(24,1): error TS2364: Invalid left-hand side of assignment expression.
|
|
tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(27,1): error TS2364: Invalid left-hand side of assignment expression.
|
|
tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(28,1): error TS2364: Invalid left-hand side of assignment expression.
|
|
tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(29,1): error TS2364: Invalid left-hand side of assignment expression.
|
|
tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(30,1): error TS2364: Invalid left-hand side of assignment expression.
|
|
tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(31,1): error TS2364: Invalid left-hand side of assignment expression.
|
|
tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(32,1): error TS2364: Invalid left-hand side of assignment expression.
|
|
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: Invalid left-hand side of assignment expression.
|
|
tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(38,6): error TS2364: Invalid left-hand side of assignment expression.
|
|
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 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: Invalid left-hand side of assignment expression.
|
|
tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(57,1): error TS2364: Invalid left-hand side of assignment expression.
|
|
tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(58,1): error TS2364: Invalid left-hand side of assignment expression.
|
|
tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(59,1): error TS2364: Invalid left-hand side of assignment expression.
|
|
tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(60,1): error TS2364: Invalid left-hand side of assignment expression.
|
|
tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(61,1): error TS2364: Invalid left-hand side of assignment expression.
|
|
tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(62,1): error TS2364: Invalid left-hand side of assignment expression.
|
|
tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(63,1): error TS2364: Invalid left-hand side of assignment expression.
|
|
tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(64,1): error TS2364: Invalid left-hand side of assignment expression.
|
|
tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(65,1): error TS2364: Invalid left-hand side of assignment expression.
|
|
tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(66,1): error TS2364: Invalid left-hand side of assignment expression.
|
|
tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(67,1): error TS2364: Invalid left-hand side of assignment expression.
|
|
tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(68,1): error TS2364: Invalid left-hand side of assignment expression.
|
|
tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(69,1): error TS2364: Invalid left-hand side of assignment expression.
|
|
tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(70,1): error TS2364: Invalid left-hand side of assignment expression.
|
|
|
|
|
|
==== tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts (38 errors) ====
|
|
// expected error for all the LHS of assignments
|
|
var value;
|
|
|
|
// this
|
|
class C {
|
|
constructor() { this = value; }
|
|
~~~~
|
|
!!! error TS2364: Invalid left-hand side of assignment expression.
|
|
foo() { this = value; }
|
|
~~~~
|
|
!!! error TS2364: Invalid left-hand side of assignment expression.
|
|
static sfoo() { this = value; }
|
|
~~~~
|
|
!!! error TS2364: Invalid left-hand side of assignment expression.
|
|
}
|
|
|
|
function foo() { this = value; }
|
|
~~~~
|
|
!!! error TS2364: Invalid left-hand side of assignment expression.
|
|
|
|
this = value;
|
|
~~~~
|
|
!!! error TS2364: Invalid left-hand side of assignment expression.
|
|
|
|
// identifiers: module, class, enum, function
|
|
module M { export var a; }
|
|
M = value;
|
|
~
|
|
!!! error TS2364: Invalid left-hand side of assignment expression.
|
|
|
|
C = value;
|
|
~
|
|
!!! error TS2364: Invalid left-hand side of assignment expression.
|
|
|
|
enum E { }
|
|
E = value;
|
|
~
|
|
!!! error TS2364: Invalid left-hand side of assignment expression.
|
|
|
|
foo = value;
|
|
~~~
|
|
!!! error TS2364: Invalid left-hand side of assignment expression.
|
|
|
|
// literals
|
|
null = value;
|
|
~~~~
|
|
!!! error TS2364: Invalid left-hand side of assignment expression.
|
|
true = value;
|
|
~~~~
|
|
!!! error TS2364: Invalid left-hand side of assignment expression.
|
|
false = value;
|
|
~~~~~
|
|
!!! error TS2364: Invalid left-hand side of assignment expression.
|
|
0 = value;
|
|
~
|
|
!!! error TS2364: Invalid left-hand side of assignment expression.
|
|
'' = value;
|
|
~~
|
|
!!! error TS2364: Invalid left-hand side of assignment expression.
|
|
/d+/ = value;
|
|
~~~~
|
|
!!! error TS2364: Invalid left-hand side of assignment expression.
|
|
|
|
// object literals
|
|
{ a: 0} = value;
|
|
~
|
|
!!! error TS1128: Declaration or statement expected.
|
|
|
|
// array literals
|
|
['', ''] = value;
|
|
~~
|
|
!!! error TS2364: Invalid left-hand side of assignment expression.
|
|
~~
|
|
!!! error TS2364: Invalid left-hand side of assignment expression.
|
|
|
|
// super
|
|
class Derived extends C {
|
|
constructor() { super(); super = value; }
|
|
~
|
|
!!! error TS1034: 'super' must be followed by an argument list or member access.
|
|
|
|
foo() { super = value }
|
|
~
|
|
!!! error TS1034: 'super' must be followed by an argument list or member access.
|
|
|
|
static sfoo() { super = value; }
|
|
~
|
|
!!! error TS1034: 'super' must be followed by an argument list or member access.
|
|
}
|
|
|
|
// function expression
|
|
function bar() { } = value;
|
|
~
|
|
!!! error TS1128: Declaration or statement expected.
|
|
() => { } = value;
|
|
~
|
|
!!! error TS1005: ';' expected.
|
|
|
|
// function calls
|
|
foo() = value;
|
|
~~~~~
|
|
!!! error TS2364: Invalid left-hand side of assignment expression.
|
|
|
|
// parentheses, the containted expression is value
|
|
(this) = value;
|
|
~~~~~~
|
|
!!! error TS2364: Invalid left-hand side of assignment expression.
|
|
(M) = value;
|
|
~~~
|
|
!!! error TS2364: Invalid left-hand side of assignment expression.
|
|
(C) = value;
|
|
~~~
|
|
!!! error TS2364: Invalid left-hand side of assignment expression.
|
|
(E) = value;
|
|
~~~
|
|
!!! error TS2364: Invalid left-hand side of assignment expression.
|
|
(foo) = value;
|
|
~~~~~
|
|
!!! error TS2364: Invalid left-hand side of assignment expression.
|
|
(null) = value;
|
|
~~~~~~
|
|
!!! error TS2364: Invalid left-hand side of assignment expression.
|
|
(true) = value;
|
|
~~~~~~
|
|
!!! error TS2364: Invalid left-hand side of assignment expression.
|
|
(0) = value;
|
|
~~~
|
|
!!! error TS2364: Invalid left-hand side of assignment expression.
|
|
('') = value;
|
|
~~~~
|
|
!!! error TS2364: Invalid left-hand side of assignment expression.
|
|
(/d+/) = value;
|
|
~~~~~~
|
|
!!! error TS2364: Invalid left-hand side of assignment expression.
|
|
({}) = value;
|
|
~~~~
|
|
!!! error TS2364: Invalid left-hand side of assignment expression.
|
|
([]) = value;
|
|
~~~~
|
|
!!! error TS2364: Invalid left-hand side of assignment expression.
|
|
(function baz() { }) = value;
|
|
~~~~~~~~~~~~~~~~~~~~
|
|
!!! error TS2364: Invalid left-hand side of assignment expression.
|
|
(foo()) = value;
|
|
~~~~~~~
|
|
!!! error TS2364: Invalid left-hand side of assignment expression. |