swc/ecmascript/codegen/tests/references/9681f5d844d7acd0.js
강동윤 916858ae81
Bugfixes ()
swc_ecma_ast:
 - fix TsExprWithTypeArgs (closes )

swc_ecma_codegen:
 - allow using default import with namespace import (closes )

swc_ecma_parser:
 - parse import.meta (closes )
2020-01-01 06:57:34 +09:00

19 lines
267 B
JavaScript

(a)=>b
; // 1 args
(a, b)=>c
; // n args
()=>b
; // 0 args
(a)=>(b)=>c
; // func returns func returns func
(a)=>((b)=>c
)
; // So these parens are dropped
()=>(b, c)=>d
; // func returns func returns func
(a)=>{
return b;
};
(a)=>'e'
; // Dropping the parens