mirror of
https://github.com/swc-project/swc.git
synced 2024-12-18 11:11:30 +03:00
11 lines
273 B
TypeScript
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;
|