TypeScript/tests/baselines/reference/newExpressionWithCast.js
2015-02-06 18:45:09 -08:00

27 lines
536 B
JavaScript

//// [newExpressionWithCast.ts]
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)();
//// [newExpressionWithCast.js]
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 Test3();