7 lines
197 B
JavaScript
7 lines
197 B
JavaScript
//// [nullAssignedToUndefined.ts]
|
|
var x = undefined = null; // error
|
|
var y: typeof undefined = null; // ok, widened
|
|
|
|
//// [nullAssignedToUndefined.js]
|
|
var x = undefined = null;
|
|
var y = null;
|