2014-09-12 22:35:07 +02:00
tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(35,9): error TS1128: Declaration or statement expected.
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(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.
2014-11-28 19:06:43 +01:00
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.
2014-09-12 22:35:07 +02:00
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.
2014-12-04 01:43:01 +01:00
==== tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts (38 errors) ====
2014-07-13 01:04:16 +02:00
// expected error for all the LHS of assignments
var value;
// this
class C {
constructor() { this = value; }
~~~~
2014-09-12 00:19:57 +02:00
!!! error TS2364: Invalid left-hand side of assignment expression.
2014-07-13 01:04:16 +02:00
foo() { this = value; }
~~~~
2014-09-12 00:19:57 +02:00
!!! error TS2364: Invalid left-hand side of assignment expression.
2014-07-13 01:04:16 +02:00
static sfoo() { this = value; }
~~~~
2014-09-12 00:19:57 +02:00
!!! error TS2364: Invalid left-hand side of assignment expression.
2014-07-13 01:04:16 +02:00
}
function foo() { this = value; }
~~~~
2014-09-12 00:19:57 +02:00
!!! error TS2364: Invalid left-hand side of assignment expression.
2014-07-13 01:04:16 +02:00
this = value;
~~~~
2014-09-12 00:19:57 +02:00
!!! error TS2364: Invalid left-hand side of assignment expression.
2014-07-13 01:04:16 +02:00
// identifiers: module, class, enum, function
module M { export var a; }
M = value;
~
2014-09-12 00:19:57 +02:00
!!! error TS2364: Invalid left-hand side of assignment expression.
2014-07-13 01:04:16 +02:00
C = value;
~
2014-09-12 00:19:57 +02:00
!!! error TS2364: Invalid left-hand side of assignment expression.
2014-07-13 01:04:16 +02:00
enum E { }
E = value;
~
2014-09-12 00:19:57 +02:00
!!! error TS2364: Invalid left-hand side of assignment expression.
2014-07-13 01:04:16 +02:00
foo = value;
~~~
2014-09-12 00:19:57 +02:00
!!! error TS2364: Invalid left-hand side of assignment expression.
2014-07-13 01:04:16 +02:00
// literals
null = value;
~~~~
2014-09-12 00:19:57 +02:00
!!! error TS2364: Invalid left-hand side of assignment expression.
2014-07-13 01:04:16 +02:00
true = value;
~~~~
2014-09-12 00:19:57 +02:00
!!! error TS2364: Invalid left-hand side of assignment expression.
2014-07-13 01:04:16 +02:00
false = value;
~~~~~
2014-09-12 00:19:57 +02:00
!!! error TS2364: Invalid left-hand side of assignment expression.
2014-07-13 01:04:16 +02:00
0 = value;
~
2014-09-12 00:19:57 +02:00
!!! error TS2364: Invalid left-hand side of assignment expression.
2014-07-13 01:04:16 +02:00
'' = value;
~~
2014-09-12 00:19:57 +02:00
!!! error TS2364: Invalid left-hand side of assignment expression.
2014-07-13 01:04:16 +02:00
/d+/ = value;
~~~~
2014-09-12 00:19:57 +02:00
!!! error TS2364: Invalid left-hand side of assignment expression.
2014-07-13 01:04:16 +02:00
// object literals
{ a: 0} = value;
~
2014-09-12 00:19:57 +02:00
!!! error TS1128: Declaration or statement expected.
2014-07-13 01:04:16 +02:00
// array literals
['', ''] = value;
2014-11-28 19:06:43 +01:00
~~
!!! error TS2364: Invalid left-hand side of assignment expression.
~~
2014-09-12 00:19:57 +02:00
!!! error TS2364: Invalid left-hand side of assignment expression.
2014-07-13 01:04:16 +02:00
// super
class Derived extends C {
constructor() { super(); super = value; }
~
2014-09-12 00:19:57 +02:00
!!! error TS1034: 'super' must be followed by an argument list or member access.
2014-07-13 01:04:16 +02:00
foo() { super = value }
~
2014-09-12 00:19:57 +02:00
!!! error TS1034: 'super' must be followed by an argument list or member access.
2014-07-13 01:04:16 +02:00
static sfoo() { super = value; }
~
2014-09-12 00:19:57 +02:00
!!! error TS1034: 'super' must be followed by an argument list or member access.
2014-07-13 01:04:16 +02:00
}
// function expression
function bar() { } = value;
~
2014-09-12 00:19:57 +02:00
!!! error TS1128: Declaration or statement expected.
2014-07-13 01:04:16 +02:00
() => { } = value;
~
2014-09-12 00:19:57 +02:00
!!! error TS1005: ';' expected.
2014-07-13 01:04:16 +02:00
// function calls
foo() = value;
~~~~~
2014-09-12 00:19:57 +02:00
!!! error TS2364: Invalid left-hand side of assignment expression.
2014-07-13 01:04:16 +02:00
// parentheses, the containted expression is value
(this) = value;
~~~~~~
2014-09-12 00:19:57 +02:00
!!! error TS2364: Invalid left-hand side of assignment expression.
2014-07-13 01:04:16 +02:00
(M) = value;
~~~
2014-09-12 00:19:57 +02:00
!!! error TS2364: Invalid left-hand side of assignment expression.
2014-07-13 01:04:16 +02:00
(C) = value;
~~~
2014-09-12 00:19:57 +02:00
!!! error TS2364: Invalid left-hand side of assignment expression.
2014-07-13 01:04:16 +02:00
(E) = value;
~~~
2014-09-12 00:19:57 +02:00
!!! error TS2364: Invalid left-hand side of assignment expression.
2014-07-13 01:04:16 +02:00
(foo) = value;
~~~~~
2014-09-12 00:19:57 +02:00
!!! error TS2364: Invalid left-hand side of assignment expression.
2014-07-13 01:04:16 +02:00
(null) = value;
~~~~~~
2014-09-12 00:19:57 +02:00
!!! error TS2364: Invalid left-hand side of assignment expression.
2014-07-13 01:04:16 +02:00
(true) = value;
~~~~~~
2014-09-12 00:19:57 +02:00
!!! error TS2364: Invalid left-hand side of assignment expression.
2014-07-13 01:04:16 +02:00
(0) = value;
~~~
2014-09-12 00:19:57 +02:00
!!! error TS2364: Invalid left-hand side of assignment expression.
2014-07-13 01:04:16 +02:00
('') = value;
~~~~
2014-09-12 00:19:57 +02:00
!!! error TS2364: Invalid left-hand side of assignment expression.
2014-07-13 01:04:16 +02:00
(/d+/) = value;
~~~~~~
2014-09-12 00:19:57 +02:00
!!! error TS2364: Invalid left-hand side of assignment expression.
2014-07-13 01:04:16 +02:00
({}) = value;
~~~~
2014-09-12 00:19:57 +02:00
!!! error TS2364: Invalid left-hand side of assignment expression.
2014-07-13 01:04:16 +02:00
([]) = value;
~~~~
2014-09-12 00:19:57 +02:00
!!! error TS2364: Invalid left-hand side of assignment expression.
2014-07-13 01:04:16 +02:00
(function baz() { }) = value;
~~~~~~~~~~~~~~~~~~~~
2014-09-12 00:19:57 +02:00
!!! error TS2364: Invalid left-hand side of assignment expression.
2014-07-13 01:04:16 +02:00
(foo()) = value;
~~~~~~~
2014-09-12 00:19:57 +02:00
!!! error TS2364: Invalid left-hand side of assignment expression.