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;
|
2014-08-15 23:32:08 +02:00
|
|
|
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;
|