11 lines
248 B
Text
11 lines
248 B
Text
=== tests/cases/conformance/types/typeRelationships/widenedTypes/initializersWidened.ts ===
|
|
// these are widened to any at the point of assignment
|
|
|
|
var x = null;
|
|
>x : any
|
|
>null : null
|
|
|
|
var y = undefined;
|
|
>y : any
|
|
>undefined : undefined
|
|
|