TypeScript/tests/baselines/reference/typeofUndefined.js
2014-11-10 17:01:09 -08:00

14 lines
345 B
TypeScript

//// [typeofUndefined.ts]
var x: typeof undefined;
var x: any; // shouldn't be an error since type is the same as the first declaration
//// [typeofUndefined.js]
var x;
var x; // shouldn't be an error since type is the same as the first declaration
//// [typeofUndefined.d.ts]
declare var x: typeof undefined;
declare var x: any;