TypeScript/tests/baselines/reference/nullAssignedToUndefined.errors.txt

8 lines
475 B
Plaintext
Raw Normal View History

tests/cases/conformance/types/typeRelationships/assignmentCompatibility/nullAssignedToUndefined.ts(1,9): error TS2364: Invalid left-hand side of assignment expression.
2014-07-13 01:04:16 +02:00
==== tests/cases/conformance/types/typeRelationships/assignmentCompatibility/nullAssignedToUndefined.ts (1 errors) ====
var x = undefined = null; // error
~~~~~~~~~
!!! error TS2364: Invalid left-hand side of assignment expression.
2014-07-13 01:04:16 +02:00
var y: typeof undefined = null; // ok, widened