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

11 lines
273 B
TypeScript

// @allowjs: true
// @checkjs: true
// @outdir: out
// @target: es3,es6
// @filename: fileJs.js
a() ? (b: number, c?: string): void => d() : e; // Not legal JS; "Unexpected token ':'" at first colon
// @filename: fileTs.ts
a() ? (b: number, c?: string): void => d() : e;