10 lines
326 B
Text
10 lines
326 B
Text
=== tests/cases/conformance/types/typeRelationships/widenedTypes/initializersWidened.ts ===
|
|
// these are widened to any at the point of assignment
|
|
|
|
var x = null;
|
|
>x : Symbol(x, Decl(initializersWidened.ts, 2, 3))
|
|
|
|
var y = undefined;
|
|
>y : Symbol(y, Decl(initializersWidened.ts, 3, 3))
|
|
>undefined : Symbol(undefined)
|
|
|