TypeScript/tests/baselines/reference/typeofUndefined.js
2014-07-15 13:08:10 -07:00

14 lines
259 B
JavaScript

//// [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;
//// [typeofUndefined.d.ts]
declare var x: any;
declare var x: any;