mirror of
https://github.com/swc-project/swc.git
synced 2024-12-18 19:21:33 +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
11 lines
198 B
TypeScript
11 lines
198 B
TypeScript
// @allowjs: true
|
|
// @checkjs: true
|
|
// @outdir: out
|
|
// @target: es3,es6
|
|
|
|
// @filename: fileJs.js
|
|
x ? y => ({ y }) : z => ({ z }) // Legal JS
|
|
|
|
// @filename: fileTs.ts
|
|
x ? y => ({ y }) : z => ({ z })
|