mirror of
https://github.com/swc-project/swc.git
synced 2024-12-22 13:11:31 +03:00
916858ae81
swc_ecma_ast: - fix TsExprWithTypeArgs (closes #548) swc_ecma_codegen: - allow using default import with namespace import (closes #546) swc_ecma_parser: - parse import.meta (closes #545)
19 lines
267 B
JavaScript
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
|