swc/crates/swc_ecma_parser/tests/tsc/callWithSpread5.ts
2022-02-04 17:08:38 +09:00

8 lines
249 B
TypeScript

declare const x: number
declare const nnnu: [number, number, number?]
declare const nntnnnt: [number, number] | [number, number, number]
declare function fn(a: number, b: number, bb: number, ...c: number[]): number
fn(...nnnu, x)
fn(...nntnnnt, x)