TypeScript/tests/baselines/reference/library_ArraySlice.types
2016-09-01 14:25:44 -07:00

30 lines
902 B
Plaintext

=== tests/cases/compiler/library_ArraySlice.ts ===
// Array.prototype.slice can have zero, one, or two arguments
Array.prototype.slice();
>Array.prototype.slice() : any[]
>Array.prototype.slice : (start?: number, end?: number) => any[]
>Array.prototype : any[]
>Array : ArrayConstructor
>prototype : any[]
>slice : (start?: number, end?: number) => any[]
Array.prototype.slice(0);
>Array.prototype.slice(0) : any[]
>Array.prototype.slice : (start?: number, end?: number) => any[]
>Array.prototype : any[]
>Array : ArrayConstructor
>prototype : any[]
>slice : (start?: number, end?: number) => any[]
>0 : 0
Array.prototype.slice(0, 1);
>Array.prototype.slice(0, 1) : any[]
>Array.prototype.slice : (start?: number, end?: number) => any[]
>Array.prototype : any[]
>Array : ArrayConstructor
>prototype : any[]
>slice : (start?: number, end?: number) => any[]
>0 : 0
>1 : 1