25 lines
985 B
Text
25 lines
985 B
Text
|
=== tests/cases/compiler/library_RegExpExecArraySlice.ts ===
|
||
|
// RegExpExecArray.slice can have zero, one, or two arguments
|
||
|
var regExpExecArrayValue: RegExpExecArray;
|
||
|
>regExpExecArrayValue : RegExpExecArray
|
||
|
>RegExpExecArray : RegExpExecArray
|
||
|
|
||
|
regExpExecArrayValue.slice();
|
||
|
>regExpExecArrayValue.slice() : string[]
|
||
|
>regExpExecArrayValue.slice : (start?: number, end?: number) => string[]
|
||
|
>regExpExecArrayValue : RegExpExecArray
|
||
|
>slice : (start?: number, end?: number) => string[]
|
||
|
|
||
|
regExpExecArrayValue.slice(0);
|
||
|
>regExpExecArrayValue.slice(0) : string[]
|
||
|
>regExpExecArrayValue.slice : (start?: number, end?: number) => string[]
|
||
|
>regExpExecArrayValue : RegExpExecArray
|
||
|
>slice : (start?: number, end?: number) => string[]
|
||
|
|
||
|
regExpExecArrayValue.slice(0,1);
|
||
|
>regExpExecArrayValue.slice(0,1) : string[]
|
||
|
>regExpExecArrayValue.slice : (start?: number, end?: number) => string[]
|
||
|
>regExpExecArrayValue : RegExpExecArray
|
||
|
>slice : (start?: number, end?: number) => string[]
|
||
|
|