12 lines
399 B
Text
12 lines
399 B
Text
=== tests/cases/compiler/invalidSplice.ts ===
|
|
var arr = [].splice(0,3,4,5);
|
|
>arr : any[]
|
|
>[].splice(0,3,4,5) : any[]
|
|
>[].splice : { (start: number): any[]; (start: number, deleteCount: number, ...items: any[]): any[]; }
|
|
>[] : undefined[]
|
|
>splice : { (start: number): any[]; (start: number, deleteCount: number, ...items: any[]): any[]; }
|
|
>0 : number
|
|
>3 : number
|
|
>4 : number
|
|
>5 : number
|
|
|