TypeScript/tests/baselines/reference/typeofUndefined.js
2014-08-14 16:36:33 -07:00

14 lines
333 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; // shouldn't be an error since type is the same as the first declaration
//// [typeofUndefined.d.ts]
declare var x: any;
declare var x: any;