mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
24 lines
420 B
TypeScript
24 lines
420 B
TypeScript
//// [tests/cases/conformance/parser/ecmascript5/RegressionTests/parser536727.ts] ////
|
|
|
|
//// [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]
|
|
"use strict";
|
|
function foo(f) {
|
|
return f("");
|
|
}
|
|
var g = (x) => x + "blah";
|
|
var x = () => g;
|
|
foo(g);
|
|
foo(() => g);
|
|
foo(x);
|