mirror of
https://github.com/swc-project/swc.git
synced 2024-11-28 11:13:43 +03:00
8 lines
255 B
TypeScript
8 lines
255 B
TypeScript
// @target:es5
|
|
var f1 = () => { }
|
|
var f2 = (x: string, y: string) => { }
|
|
var f3 = (x: string, y: number, ...rest) => { }
|
|
var f4 = (x: string, y: number, z = 10) => { }
|
|
function foo(func: () => boolean) { }
|
|
foo(() => true);
|
|
foo(() => { return false; }); |