2014-07-13 01:04:16 +02:00
|
|
|
//// [targetTypeCalls.ts]
|
|
|
|
var fra1: (v:any)=>string = function() { return function (v:string) {return v;}; }() // should work
|
|
|
|
var fra2: (v:any)=>number = function() { return function () { return 0; } }() // should work
|
|
|
|
|
|
|
|
var fra3: (v:any)=>string = function() { return function() { return function(v) {return v;};}(); }() // should work
|
|
|
|
var fra4: (v:any)=>void = function() { return function() { return function(v) {return v;};}(); }() // should work
|
|
|
|
|
|
|
|
//// [targetTypeCalls.js]
|
2015-02-07 05:03:24 +01:00
|
|
|
var fra1 = function () { return function (v) { return v; }; }(); // should work
|
|
|
|
var fra2 = function () { return function () { return 0; }; }(); // should work
|
|
|
|
var fra3 = function () { return function () { return function (v) { return v; }; }(); }(); // should work
|
|
|
|
var fra4 = function () { return function () { return function (v) { return v; }; }(); }(); // should work
|