5 lines
No EOL
288 B
Text
5 lines
No EOL
288 B
Text
==== 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 |