|
|
|
|
@@ -6,9 +6,19 @@ test_ExprSignature
|
|
|
|
|
| tst.ts:12:8:12:8 | x | number |
|
|
|
|
|
| tst.ts:16:8:16:8 | x | number |
|
|
|
|
|
| tst.ts:17:8:17:8 | x | any |
|
|
|
|
|
| tst.ts:21:3:21:28 | method( ... string; | (x: number): string |
|
|
|
|
|
| tst.ts:21:10:21:10 | x | number |
|
|
|
|
|
| tst.ts:23:3:23:38 | overloa ... number; | (x: any): any |
|
|
|
|
|
| tst.ts:23:3:23:38 | overloa ... number; | (x: number): number |
|
|
|
|
|
| tst.ts:23:3:23:38 | overloa ... number; | (x: string): string |
|
|
|
|
|
| tst.ts:23:20:23:20 | x | number |
|
|
|
|
|
| tst.ts:24:3:24:38 | overloa ... string; | (x: any): any |
|
|
|
|
|
| tst.ts:24:3:24:38 | overloa ... string; | (x: number): number |
|
|
|
|
|
| tst.ts:24:3:24:38 | overloa ... string; | (x: string): string |
|
|
|
|
|
| tst.ts:24:20:24:20 | x | string |
|
|
|
|
|
| tst.ts:25:3:25:32 | overloa ... ): any; | (x: any): any |
|
|
|
|
|
| tst.ts:25:3:25:32 | overloa ... ): any; | (x: number): number |
|
|
|
|
|
| tst.ts:25:3:25:32 | overloa ... ): any; | (x: string): string |
|
|
|
|
|
| tst.ts:25:20:25:20 | x | any |
|
|
|
|
|
| tst.ts:28:5:28:5 | m | Method |
|
|
|
|
|
| tst.ts:29:1:29:1 | m | Method |
|
|
|
|
|
@@ -22,7 +32,9 @@ test_ExprSignature
|
|
|
|
|
| tst.ts:30:1:30:25 | m.overl ... ("foo") | string |
|
|
|
|
|
| tst.ts:30:20:30:24 | "foo" | "foo" |
|
|
|
|
|
| tst.ts:33:3:33:10 | callback | (x: number): string |
|
|
|
|
|
| tst.ts:33:13:33:33 | (x: num ... string | (x: number): string |
|
|
|
|
|
| tst.ts:33:14:33:14 | x | number |
|
|
|
|
|
| tst.ts:37:3:37:18 | method(x: T): T; | (x: T): T |
|
|
|
|
|
| tst.ts:37:10:37:10 | x | T |
|
|
|
|
|
| tst.ts:40:10:40:12 | foo | (g: Generic<string>): string |
|
|
|
|
|
| tst.ts:40:14:40:14 | g | Generic<string> |
|
|
|
|
|
@@ -30,6 +42,11 @@ test_ExprSignature
|
|
|
|
|
| tst.ts:41:10:41:17 | g.method | (x: string): string |
|
|
|
|
|
| tst.ts:41:10:41:24 | g.method("foo") | string |
|
|
|
|
|
| tst.ts:41:19:41:23 | "foo" | "foo" |
|
|
|
|
|
| tst.ts:44:15:44:15 | C | C |
|
|
|
|
|
| tst.ts:45:3:45:25 | constru ... tring); | any |
|
|
|
|
|
| tst.ts:45:15:45:15 | x | string |
|
|
|
|
|
| tst.ts:46:3:46:25 | constru ... umber); | any |
|
|
|
|
|
| tst.ts:46:15:46:15 | x | number |
|
|
|
|
|
test_TypeReferenceSig
|
|
|
|
|
| Callable | function | 0 | (x: number): string |
|
|
|
|
|
| Newable | constructor | 0 | new (x: number): any |
|
|
|
|
|
@@ -38,3 +55,20 @@ test_TypeReferenceSig
|
|
|
|
|
| OverloadedCallable | function | 2 | (x: any): any |
|
|
|
|
|
| OverloadedNewable | constructor | 0 | new (x: number): OverloadedNewable |
|
|
|
|
|
| OverloadedNewable | constructor | 1 | new (x: any): any |
|
|
|
|
|
test_FunctionCallSig
|
|
|
|
|
| tst.ts:2:3:2:22 | (x: number): string; | (x: number): string |
|
|
|
|
|
| tst.ts:6:3:6:22 | (x: number): number; | (x: number): number |
|
|
|
|
|
| tst.ts:7:3:7:22 | (x: string): string; | (x: string): string |
|
|
|
|
|
| tst.ts:8:3:8:16 | (x: any): any; | (x: any): any |
|
|
|
|
|
| tst.ts:12:3:12:23 | new (x: ... ): any; | new (x: number): any |
|
|
|
|
|
| tst.ts:16:3:16:37 | new (x: ... ewable; | new (x: number): OverloadedNewable |
|
|
|
|
|
| tst.ts:17:3:17:20 | new (x: any): any; | new (x: any): any |
|
|
|
|
|
| tst.ts:21:3:21:28 | method( ... string; | (x: number): string |
|
|
|
|
|
| tst.ts:23:3:23:38 | overloa ... number; | (x: number): number |
|
|
|
|
|
| tst.ts:24:3:24:38 | overloa ... string; | (x: string): string |
|
|
|
|
|
| tst.ts:25:3:25:32 | overloa ... ): any; | (x: any): any |
|
|
|
|
|
| tst.ts:33:13:33:33 | (x: num ... string | (x: number): string |
|
|
|
|
|
| tst.ts:37:3:37:18 | method(x: T): T; | (x: T): T |
|
|
|
|
|
| tst.ts:40:1:42:1 | functio ... oo");\\n} | (g: Generic<string>): string |
|
|
|
|
|
| tst.ts:45:3:45:25 | constru ... tring); | new (x: string): C |
|
|
|
|
|
| tst.ts:46:3:46:25 | constru ... umber); | new (x: number): C |
|
|
|
|
|
|