TypeScript/tests/baselines/reference/typeofUndefined.types
2015-04-15 16:44:20 -07:00

10 lines
211 B
Plaintext

=== tests/cases/compiler/typeofUndefined.ts ===
var x: typeof undefined;
>x : any
>undefined : undefined
var x: any; // shouldn't be an error since type is the same as the first declaration
>x : any