TypeScript/tests/baselines/reference/parser536727.errors.txt

14 lines
450 B
Text
Raw Normal View History

2014-07-13 01:04:16 +02:00
==== tests/cases/conformance/parser/ecmascript5/RegressionTests/parser536727.ts (2 errors) ====
function foo(f: (x: string) => string) {
return f("");
}
var g = (x: string) => x + "blah";
var x = () => g;
foo(g);
foo(() => g);
~~~~~~~~~~~~
!!! Supplied parameters do not match any signature of call target.
foo(x);
~~~~~~
!!! Supplied parameters do not match any signature of call target.