mirror of
https://github.com/swc-project/swc.git
synced 2024-12-21 12:41:54 +03:00
b887b30092
**Description:** This is required for https://github.com/swc-project/swc/pull/6981 and https://github.com/swc-project/swc/pull/6950
10 lines
367 B
TypeScript
10 lines
367 B
TypeScript
// @target: es5
|
|
var lambda1 = (y = "hello") => { }
|
|
var lambda2 = (x: number, y = "hello") => { }
|
|
var lambda3 = (x: number, y = "hello", ...rest) => { }
|
|
var lambda4 = (y = "hello", ...rest) => { }
|
|
|
|
var x = function (str = "hello", ...rest) { }
|
|
var y = (function (num = 10, boo = false, ...rest) { })()
|
|
var z = (function (num: number, boo = false, ...rest) { })(10)
|