Leading comments have trailing separator while trailing comments have leading space This removes the extra trailing space in the trailing comments
7 lines
221 B
TypeScript
7 lines
221 B
TypeScript
//// [nullAssignedToUndefined.ts]
|
|
var x = undefined = null; // error
|
|
var y: typeof undefined = null; // ok, widened
|
|
|
|
//// [nullAssignedToUndefined.js]
|
|
var x = undefined = null; // error
|
|
var y = null; // ok, widened
|