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

15 lines
270 B
TypeScript

// @noimplicitany: true
function Test() { }
// valid but error with noImplicitAny
var test = new Test();
function Test2() { }
// parse error
var test2 = new <any>Test2();
function Test3() { }
// valid with noImplicitAny
var test3 = new (<any>Test3)();