TypeScript/tests/baselines/reference/library_ArraySlice.types

30 lines
917 B
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== 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[]
2014-08-15 23:33:16 +02:00
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[]
2015-04-13 21:36:11 +02:00
>0 : number
2014-08-15 23:33:16 +02:00
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[]
2015-04-13 21:36:11 +02:00
>0 : number
>1 : number
2014-08-15 23:33:16 +02:00