assemblyscript/tests/parser/arrow-functions.ts

11 lines
144 B
TypeScript
Raw Normal View History

// array function
(x): i32 => x;
(x: i32) => x;
(x?) => x;
(x?, y?) => x;
(x?: i32) => x;
// not an array function
(b ? x : y);
(b ? f : g)();