42 lines
No EOL
1.7 KiB
Text
42 lines
No EOL
1.7 KiB
Text
tests/cases/conformance/types/primitives/undefined/invalidUndefinedAssignments.ts(4,1): error TS2364: Invalid left-hand side of assignment expression.
|
|
tests/cases/conformance/types/primitives/undefined/invalidUndefinedAssignments.ts(5,1): error TS2364: Invalid left-hand side of assignment expression.
|
|
tests/cases/conformance/types/primitives/undefined/invalidUndefinedAssignments.ts(9,1): error TS2364: Invalid left-hand side of assignment expression.
|
|
tests/cases/conformance/types/primitives/undefined/invalidUndefinedAssignments.ts(14,1): error TS2304: Cannot find name 'I'.
|
|
tests/cases/conformance/types/primitives/undefined/invalidUndefinedAssignments.ts(17,1): error TS2364: Invalid left-hand side of assignment expression.
|
|
tests/cases/conformance/types/primitives/undefined/invalidUndefinedAssignments.ts(21,1): error TS2364: Invalid left-hand side of assignment expression.
|
|
|
|
|
|
==== tests/cases/conformance/types/primitives/undefined/invalidUndefinedAssignments.ts (6 errors) ====
|
|
var x: typeof undefined;
|
|
|
|
enum E { A }
|
|
E = x;
|
|
~
|
|
!!! error TS2364: Invalid left-hand side of assignment expression.
|
|
E.A = x;
|
|
~~~
|
|
!!! error TS2364: Invalid left-hand side of assignment expression.
|
|
|
|
class C { foo: string }
|
|
var f: C;
|
|
C = x;
|
|
~
|
|
!!! error TS2364: Invalid left-hand side of assignment expression.
|
|
|
|
interface I { foo: string }
|
|
var g: I;
|
|
g = x;
|
|
I = x;
|
|
~
|
|
!!! error TS2304: Cannot find name 'I'.
|
|
|
|
module M { export var x = 1; }
|
|
M = x;
|
|
~
|
|
!!! error TS2364: Invalid left-hand side of assignment expression.
|
|
|
|
function i<T>(a: T) { }
|
|
// BUG 767030
|
|
i = x;
|
|
~
|
|
!!! error TS2364: Invalid left-hand side of assignment expression. |