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[]
|
2015-04-13 23:01:57 +02:00
|
|
|
>Array.prototype.slice : (start?: number, end?: number) => any[], Symbol(Array.slice, Decl(lib.d.ts, 1048, 15))
|
|
|
|
>Array.prototype : any[], Symbol(ArrayConstructor.prototype, Decl(lib.d.ts, 1167, 31))
|
|
|
|
>Array : ArrayConstructor, Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11))
|
|
|
|
>prototype : any[], Symbol(ArrayConstructor.prototype, Decl(lib.d.ts, 1167, 31))
|
|
|
|
>slice : (start?: number, end?: number) => any[], Symbol(Array.slice, Decl(lib.d.ts, 1048, 15))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
Array.prototype.slice(0);
|
|
|
|
>Array.prototype.slice(0) : any[]
|
2015-04-13 23:01:57 +02:00
|
|
|
>Array.prototype.slice : (start?: number, end?: number) => any[], Symbol(Array.slice, Decl(lib.d.ts, 1048, 15))
|
|
|
|
>Array.prototype : any[], Symbol(ArrayConstructor.prototype, Decl(lib.d.ts, 1167, 31))
|
|
|
|
>Array : ArrayConstructor, Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11))
|
|
|
|
>prototype : any[], Symbol(ArrayConstructor.prototype, Decl(lib.d.ts, 1167, 31))
|
|
|
|
>slice : (start?: number, end?: number) => any[], Symbol(Array.slice, Decl(lib.d.ts, 1048, 15))
|
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[]
|
2015-04-13 23:01:57 +02:00
|
|
|
>Array.prototype.slice : (start?: number, end?: number) => any[], Symbol(Array.slice, Decl(lib.d.ts, 1048, 15))
|
|
|
|
>Array.prototype : any[], Symbol(ArrayConstructor.prototype, Decl(lib.d.ts, 1167, 31))
|
|
|
|
>Array : ArrayConstructor, Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11))
|
|
|
|
>prototype : any[], Symbol(ArrayConstructor.prototype, Decl(lib.d.ts, 1167, 31))
|
|
|
|
>slice : (start?: number, end?: number) => any[], Symbol(Array.slice, Decl(lib.d.ts, 1048, 15))
|
2015-04-13 21:36:11 +02:00
|
|
|
>0 : number
|
|
|
|
>1 : number
|
2014-08-15 23:33:16 +02:00
|
|
|
|