10 lines
359 B
Plaintext
10 lines
359 B
Plaintext
=== tests/cases/compiler/typeofUndefined.ts ===
|
|
|
|
var x: typeof undefined;
|
|
>x : Symbol(x, Decl(typeofUndefined.ts, 1, 3), Decl(typeofUndefined.ts, 2, 3))
|
|
>undefined : Symbol(undefined)
|
|
|
|
var x: any; // shouldn't be an error since type is the same as the first declaration
|
|
>x : Symbol(x, Decl(typeofUndefined.ts, 1, 3), Decl(typeofUndefined.ts, 2, 3))
|
|
|