2014-07-13 01:04:16 +02:00
|
|
|
//// [parser536727.ts]
|
|
|
|
function foo(f: (x: string) => string) {
|
|
|
|
return f("");
|
|
|
|
}
|
|
|
|
var g = (x: string) => x + "blah";
|
|
|
|
var x = () => g;
|
|
|
|
foo(g);
|
|
|
|
foo(() => g);
|
|
|
|
foo(x);
|
|
|
|
|
|
|
|
|
|
|
|
//// [parser536727.js]
|
|
|
|
function foo(f) {
|
|
|
|
return f("");
|
|
|
|
}
|
2015-03-09 02:23:23 +01:00
|
|
|
var g = function (x) {
|
|
|
|
return x + "blah";
|
|
|
|
};
|
|
|
|
var x = function () {
|
|
|
|
return g;
|
|
|
|
};
|
2014-07-13 01:04:16 +02:00
|
|
|
foo(g);
|
2015-03-09 02:23:23 +01:00
|
|
|
foo(function () {
|
|
|
|
return g;
|
|
|
|
});
|
2014-07-13 01:04:16 +02:00
|
|
|
foo(x);
|