TypeScript/tests/baselines/reference/library_StringSlice.types
2014-08-15 14:37:48 -07:00

27 lines
1.2 KiB
Plaintext

=== 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
>String : { (value?: any): string; new (value?: any): String; prototype: String; fromCharCode(...codes: number[]): string; }
>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
>String : { (value?: any): string; new (value?: any): String; prototype: String; fromCharCode(...codes: number[]): string; }
>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
>String : { (value?: any): string; new (value?: any): String; prototype: String; fromCharCode(...codes: number[]): string; }
>prototype : String
>slice : (start?: number, end?: number) => string