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;
|
2015-04-16 01:44:20 +02:00
|
|
|
>x : any
|
2015-04-13 21:36:11 +02:00
|
|
|
>null : null
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var y = undefined;
|
2015-04-16 01:44:20 +02:00
|
|
|
>y : any
|
|
|
|
>undefined : undefined
|
2014-08-15 23:33:16 +02:00
|
|
|
|