2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/library_StringSlice.ts ===
|
|
|
|
// String.prototype.slice can have zero, one, or two arguments
|
|
|
|
String.prototype.slice();
|
|
|
|
>String.prototype.slice() : string
|
|
|
|
>String.prototype.slice : (start?: number, end?: number) => string
|
|
|
|
>String.prototype : String
|
2014-10-29 05:21:47 +01:00
|
|
|
>String : StringConstructor
|
2014-08-15 23:33:16 +02:00
|
|
|
>prototype : String
|
|
|
|
>slice : (start?: number, end?: number) => string
|
|
|
|
|
|
|
|
String.prototype.slice(0);
|
|
|
|
>String.prototype.slice(0) : string
|
|
|
|
>String.prototype.slice : (start?: number, end?: number) => string
|
|
|
|
>String.prototype : String
|
2014-10-29 05:21:47 +01:00
|
|
|
>String : StringConstructor
|
2014-08-15 23:33:16 +02:00
|
|
|
>prototype : String
|
|
|
|
>slice : (start?: number, end?: number) => string
|
|
|
|
|
|
|
|
String.prototype.slice(0,1);
|
|
|
|
>String.prototype.slice(0,1) : string
|
|
|
|
>String.prototype.slice : (start?: number, end?: number) => string
|
|
|
|
>String.prototype : String
|
2014-10-29 05:21:47 +01:00
|
|
|
>String : StringConstructor
|
2014-08-15 23:33:16 +02:00
|
|
|
>prototype : String
|
|
|
|
>slice : (start?: number, end?: number) => string
|
|
|
|
|