25 lines
659 B
Text
25 lines
659 B
Text
=== 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[]
|
|
|