2014-07-13 01:04:16 +02:00
|
|
|
//// [targetTypeVoidFunc.ts]
|
|
|
|
function f1(): { new (): number; } {
|
|
|
|
return function () { return; }
|
|
|
|
};
|
|
|
|
|
|
|
|
var x = f1();
|
|
|
|
var y = new x();
|
|
|
|
var z = new (f1())();
|
|
|
|
|
|
|
|
//// [targetTypeVoidFunc.js]
|
|
|
|
function f1() {
|
2015-02-07 05:03:24 +01:00
|
|
|
return function () { return; };
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
|
|
|
;
|
|
|
|
var x = f1();
|
|
|
|
var y = new x();
|
|
|
|
var z = new (f1())();
|