TypeScript/tests/baselines/reference/nullAssignedToUndefined.errors.txt
2014-07-12 17:30:19 -07:00

5 lines
288 B
Plaintext

==== tests/cases/conformance/types/typeRelationships/assignmentCompatibility/nullAssignedToUndefined.ts (1 errors) ====
var x = undefined = null; // error
~~~~~~~~~
!!! Invalid left-hand side of assignment expression.
var y: typeof undefined = null; // ok, widened