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

11 lines
284 B
TypeScript

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