2015-02-03 00:30:33 +01:00
|
|
|
//// [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]
|
2015-02-07 03:45:09 +01:00
|
|
|
function Test() { }
|
2015-02-03 00:30:33 +01:00
|
|
|
// valid but error with noImplicitAny
|
|
|
|
var test = new Test();
|
2015-02-07 03:45:09 +01:00
|
|
|
function Test2() { }
|
2015-02-03 00:30:33 +01:00
|
|
|
// parse error
|
|
|
|
var test2 = new < any > Test2();
|
2015-02-07 03:45:09 +01:00
|
|
|
function Test3() { }
|
2015-02-03 00:30:33 +01:00
|
|
|
// valid with noImplicitAny
|
|
|
|
var test3 = new Test3();
|