2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/typeofUndefined.ts ===
|
|
|
|
|
|
|
|
var x: typeof undefined;
|
2015-04-16 01:44:20 +02:00
|
|
|
>x : any
|
|
|
|
>undefined : undefined
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var x: any; // shouldn't be an error since type is the same as the first declaration
|
2015-04-16 01:44:20 +02:00
|
|
|
>x : any
|
2014-08-15 23:33:16 +02:00
|
|
|
|