TypeScript/tests/baselines/reference/initializersWidened.types

12 lines
248 B
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/conformance/types/typeRelationships/widenedTypes/initializersWidened.ts ===
// these are widened to any at the point of assignment
var x = null;
>x : any
2015-04-13 21:36:11 +02:00
>null : null
2014-08-15 23:33:16 +02:00
var y = undefined;
>y : any
>undefined : undefined
2014-08-15 23:33:16 +02:00