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

13 lines
373 B
Text

=== tests/cases/compiler/arrayLiteralInNonVarArgParameter.ts ===
function panic(val: string[], ...opt: string[]) { }
>panic : (val: string[], ...opt: string[]) => void
>val : string[]
>opt : string[]
panic([], 'one', 'two');
>panic([], 'one', 'two') : void
>panic : (val: string[], ...opt: string[]) => void
>[] : undefined[]
>'one' : string
>'two' : string