TypeScript/tests/baselines/reference/restParameters.types
2015-04-15 16:44:20 -07:00

26 lines
659 B
Plaintext

=== tests/cases/compiler/restParameters.ts ===
function f18(a?:string, ...b:number[]){}
>f18 : (a?: string, ...b: number[]) => void
>a : string
>b : number[]
function f19(a?:string, b?:number, ...c:number[]){}
>f19 : (a?: string, b?: number, ...c: number[]) => void
>a : string
>b : number
>c : number[]
function f20(a:string, b?:string, ...c:number[]){}
>f20 : (a: string, b?: string, ...c: number[]) => void
>a : string
>b : string
>c : number[]
function f21(a:string, b?:string, c?:number, ...d:number[]){}
>f21 : (a: string, b?: string, c?: number, ...d: number[]) => void
>a : string
>b : string
>c : number
>d : number[]