swc/crates/swc_ecma_parser/tests/tsc/parserArrowFunctionExpression13.ts

11 lines
242 B
TypeScript
Raw Normal View History

// @allowjs: true
// @checkjs: true
// @outdir: out
// @target: es3,es6
// @filename: fileJs.js
a ? () => a() : (): any => null; // Not legal JS; "Unexpected token ')'" at last paren
// @filename: fileTs.ts
a ? () => a() : (): any => null;