9 lines
211 B
Text
9 lines
211 B
Text
=== 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
|
|
|