| 1 | function one(this: number) {} |
| 2 | function two(this: number, a) {} |
| 3 | function three(this: number, ...a) {} |
| 4 | function four(this: number, a, b, ...c) {} |
| 5 | function five<T>(this: T) {} |
| 6 | type six = (this: number) => void; |
| 7 | type seven = (this: number, a: number) => void; |
| 8 | type eight = (this: number, ...a: any) => void; |
| 9 | type nine = <T>(this: T) => void; |
| 10 | type ten = { |
| 11 | m1(this: string): void, |
| 12 | m2(this: string, a: number): void, |
| 13 | m3(this: string, ...a: any): void, |
| 14 | m4<T>(this: T): void, |
| 15 | }; |
| 16 | declare function eleven(this: number): void; |
| 17 | declare function twelve(this: string, a: number): void; |
| 18 | declare function thirteen(this: string, ...a: any): void; |
| 19 | declare function fourteen<T>(this: T): void; |
| 20 | declare class Fifteen { |
| 21 | m1(this: string): void, |
| 22 | m2(this: string, a: number): void, |
| 23 | m3(this: string, ...a: any): void, |
| 24 | m4<T>(this: T): void, |
| 25 | } |
| 26 | class Sixteen { |
| 27 | m1(this: number) {} |
| 28 | m2(this: number, a) {} |
| 29 | m3(this: number, ...a) {} |
| 30 | m4(this: number, a, b, ...c) {} |
| 31 | m5<T>(this: T) {} |
| 32 | } |
| 33 | let seventeen = { |
| 34 | m1(this: number) {}, |
| 35 | m2(this: number, a) {}, |
| 36 | m3(this: number, ...a) {}, |
| 37 | m4(this: number, a, b, ...c) {}, |
| 38 | m5<T>(this: T) {} |
| 39 | }; |