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

8 lines
249 B
TypeScript
Raw Normal View History

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)