TypeScript/tests/baselines/reference/typeofUndefined.js

14 lines
333 B
JavaScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
//// [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
2014-07-13 01:04:16 +02:00
//// [typeofUndefined.d.ts]
2014-07-12 01:36:06 +02:00
declare var x: any;
declare var x: any;