TypeScript/tests/cases/compiler/typeofUndefined.ts
2014-07-12 17:30:19 -07:00

4 lines
135 B
TypeScript

// @declaration: true
var x: typeof undefined;
var x: any; // shouldn't be an error since type is the same as the first declaration