assemblyscript/tests/parser/arrow-functions.ts.fixture.ts
Daniel Wirtz e8b0767143
Infer function expressions in matching contexts (#514)
* legalizes omitting types on function expressions within function type contexts
* legalizes omitting any number of arguments
2019-02-27 21:45:36 +01:00

9 lines
108 B
TypeScript

(x): i32 => x;
(x: i32) => x;
(x?) => x;
(x?, y?) => x;
(x?: i32) => x;
x => x;
(b ? x : y);
(b ? f : g)();