TypeScript/tests/baselines/reference/typeofUndefined.types

10 lines
211 B
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/typeofUndefined.ts ===
var x: typeof undefined;
>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
>x : any
2014-08-15 23:33:16 +02:00