23 lines
1.3 KiB
Text
23 lines
1.3 KiB
Text
=== tests/cases/compiler/library_ArraySlice.ts ===
|
|
// Array.prototype.slice can have zero, one, or two arguments
|
|
Array.prototype.slice();
|
|
>Array.prototype.slice : Symbol(Array.slice, Decl(lib.d.ts, 1048, 15))
|
|
>Array.prototype : Symbol(ArrayConstructor.prototype, Decl(lib.d.ts, 1167, 41))
|
|
>Array : Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11))
|
|
>prototype : Symbol(ArrayConstructor.prototype, Decl(lib.d.ts, 1167, 41))
|
|
>slice : Symbol(Array.slice, Decl(lib.d.ts, 1048, 15))
|
|
|
|
Array.prototype.slice(0);
|
|
>Array.prototype.slice : Symbol(Array.slice, Decl(lib.d.ts, 1048, 15))
|
|
>Array.prototype : Symbol(ArrayConstructor.prototype, Decl(lib.d.ts, 1167, 41))
|
|
>Array : Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11))
|
|
>prototype : Symbol(ArrayConstructor.prototype, Decl(lib.d.ts, 1167, 41))
|
|
>slice : Symbol(Array.slice, Decl(lib.d.ts, 1048, 15))
|
|
|
|
Array.prototype.slice(0, 1);
|
|
>Array.prototype.slice : Symbol(Array.slice, Decl(lib.d.ts, 1048, 15))
|
|
>Array.prototype : Symbol(ArrayConstructor.prototype, Decl(lib.d.ts, 1167, 41))
|
|
>Array : Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11))
|
|
>prototype : Symbol(ArrayConstructor.prototype, Decl(lib.d.ts, 1167, 41))
|
|
>slice : Symbol(Array.slice, Decl(lib.d.ts, 1048, 15))
|
|
|