@@ -39,8 +39,8 @@ module Errors {
3939> : ^^^^^^
4040
4141 declare function foo2(a2: (x: number) => string[]): typeof a2;
42- >foo2 : { (a2: (x: number) => string[]): (x: number) => string[] ; (a2: any): any; }
43- > : ^^^^^^^ ^^^^^^^ ^^^^^ ^^^^^^^^^^^^^^^^^^^
42+ >foo2 : { (a2: (x: number) => string[]): typeof a2 ; (a2: any): any; }
43+ > : ^^^^^^^ ^^^ ^^^^^^^^^^^^^^^^^^^
4444>a2 : (x: number) => string[]
4545> : ^^^^ ^^^^^
4646>x : number
@@ -54,8 +54,8 @@ module Errors {
5454>a2 : any
5555
5656 declare function foo7(a2: (x: (arg: Base) => Derived) => (r: Base) => Derived2): typeof a2;
57- >foo7 : { (a2: (x: (arg: Base) => Derived) => (r: Base) => Derived2): (x: (arg: Base) => Derived) => (r: Base) => Derived2 ; (a2: any): any; }
58- > : ^^^^^^^ ^^^^^^^ ^^^^^ ^^^^^^^^^^^^^^^^^^^
57+ >foo7 : { (a2: (x: (arg: Base) => Derived) => (r: Base) => Derived2): typeof a2 ; (a2: any): any; }
58+ > : ^^^^^^^ ^^^ ^^^^^^^^^^^^^^^^^^^
5959>a2 : (x: (arg: Base) => Derived) => (r: Base) => Derived2
6060> : ^^^^ ^^^^^
6161>x : (arg: Base) => Derived
@@ -73,8 +73,8 @@ module Errors {
7373>a2 : any
7474
7575 declare function foo8(a2: (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived): typeof a2;
76- >foo8 : { (a2: (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived): (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived ; (a2: any): any; }
77- > : ^^^^^^^ ^^^^^^^ ^^^^^ ^^^^^ ^^^^^^^^^^^^^^^^^^^
76+ >foo8 : { (a2: (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived): typeof a2 ; (a2: any): any; }
77+ > : ^^^^^^^ ^^^ ^^^^^^^^^^^^^^^^^^^
7878>a2 : (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived
7979> : ^^^^ ^^^^^ ^^^^^
8080>x : (arg: Base) => Derived
@@ -96,8 +96,8 @@ module Errors {
9696>a2 : any
9797
9898 declare function foo10(a2: (...x: Base[]) => Base): typeof a2;
99- >foo10 : { (a2: (...x: Base[]) => Base): (...x: Base[]) => Base ; (a2: any): any; }
100- > : ^^^^^^^ ^^^^^^^^^^ ^^^^^ ^^^^^^^^^^^^^^^^^^^
99+ >foo10 : { (a2: (...x: Base[]) => Base): typeof a2 ; (a2: any): any; }
100+ > : ^^^^^^^ ^^^ ^^^^^^^^^^^^^^^^^^^
101101>a2 : (...x: Base[]) => Base
102102> : ^^^^^^^ ^^^^^
103103>x : Base[]
@@ -111,8 +111,8 @@ module Errors {
111111>a2 : any
112112
113113 declare function foo11(a2: (x: { foo: string }, y: { foo: string; bar: string }) => Base): typeof a2;
114- >foo11 : { (a2: (x: { foo: string; }, y: { foo: string; bar: string; }) => Base): (x: { foo: string; }, y: { foo: string; bar: string; }) => Base ; (a2: any): any; }
115- > : ^^^^^^^ ^^^^^^^ ^^^^^ ^^^^^ ^^^^^^^^^^^^^^^^^^^
114+ >foo11 : { (a2: (x: { foo: string; }, y: { foo: string; bar: string; }) => Base): typeof a2 ; (a2: any): any; }
115+ > : ^^^^^^^ ^^^ ^^^^^^^^^^^^^^^^^^^
116116>a2 : (x: { foo: string; }, y: { foo: string; bar: string; }) => Base
117117> : ^^^^ ^^^^^ ^^^^^
118118>x : { foo: string; }
@@ -134,8 +134,8 @@ module Errors {
134134>a2 : any
135135
136136 declare function foo12(a2: (x: Array<Base>, y: Array<Derived2>) => Array<Derived>): typeof a2;
137- >foo12 : { (a2: (x: Array<Base>, y: Array<Derived2>) => Array<Derived>): (x: Array<Base>, y: Array<Derived2>) => Array<Derived> ; (a2: any): any; }
138- > : ^^^^^^^ ^^^^^^^ ^^^^^ ^^^^^ ^^^^^^^^^^^^^^^^^^^
137+ >foo12 : { (a2: (x: Array<Base>, y: Array<Derived2>) => Array<Derived>): typeof a2 ; (a2: any): any; }
138+ > : ^^^^^^^ ^^^ ^^^^^^^^^^^^^^^^^^^
139139>a2 : (x: Array<Base>, y: Array<Derived2>) => Array<Derived>
140140> : ^^^^ ^^^^^ ^^^^^
141141>x : Base[]
@@ -151,8 +151,8 @@ module Errors {
151151>a2 : any
152152
153153 declare function foo15(a2: (x: { a: string; b: number }) => number): typeof a2;
154- >foo15 : { (a2: (x: { a: string; b: number; }) => number): (x: { a: string; b: number; }) => number ; (a2: any): any; }
155- > : ^^^^^^^ ^^^^^^^ ^^^^^ ^^^^^^^^^^^^^^^^^^^
154+ >foo15 : { (a2: (x: { a: string; b: number; }) => number): typeof a2 ; (a2: any): any; }
155+ > : ^^^^^^^ ^^^ ^^^^^^^^^^^^^^^^^^^
156156>a2 : (x: { a: string; b: number; }) => number
157157> : ^^^^ ^^^^^
158158>x : { a: string; b: number; }
@@ -170,8 +170,8 @@ module Errors {
170170>a2 : any
171171
172172 declare function foo16(a2: {
173- >foo16 : { (a2: { (x: { (a: number): number; (a?: number): number; }): number[]; (x: { (a: boolean): boolean; (a?: boolean): boolean; }): boolean[]; }): { (x: { (a: number): number; (a?: number): number; }): number[]; (x: { (a: boolean): boolean; (a?: boolean): boolean; }): boolean[]; } ; (a2: any): any; }
174- > : ^^^^^^^ ^^^^^^^^^ ^^^ ^^^^^^ ^^^ ^^^ ^^^^^^^^^^^^^^^^^^^
173+ >foo16 : { (a2: { (x: { (a: number): number; (a?: number): number; }): number[]; (x: { (a: boolean): boolean; (a?: boolean): boolean; }): boolean[]; }): typeof a2 ; (a2: any): any; }
174+ > : ^^^^^^^ ^^^ ^^^^^^^^^^^^^^^^^^^
175175>a2 : { (x: { (a: number): number; (a?: number): number; }): number[]; (x: { (a: boolean): boolean; (a?: boolean): boolean; }): boolean[]; }
176176> : ^^^^^^ ^^^ ^^^^^^ ^^^ ^^^
177177
@@ -212,8 +212,8 @@ module Errors {
212212>a2 : any
213213
214214 declare function foo17(a2: {
215- >foo17 : { (a2: { (x: { <T extends Derived>(a: T): T; <T extends Base>(a: T): T; }): any[]; (x: { <T extends Derived2>(a: T): T; <T extends Base>(a: T): T; }): any[]; }): { (x: { <T extends Derived>(a: T): T; <T extends Base>(a: T): T; }): any[]; (x: { <T extends Derived2>(a: T): T; <T extends Base>(a: T): T; }): any[]; } ; (a2: any): any; }
216- > : ^^^^^^^ ^^^^^^^^^ ^^^ ^^^^^^ ^^^ ^^^ ^^^^^^^^^^^^^^^^^^^
215+ >foo17 : { (a2: { (x: { <T extends Derived>(a: T): T; <T extends Base>(a: T): T; }): any[]; (x: { <T extends Derived2>(a: T): T; <T extends Base>(a: T): T; }): any[]; }): typeof a2 ; (a2: any): any; }
216+ > : ^^^^^^^ ^^^ ^^^^^^^^^^^^^^^^^^^
217217>a2 : { (x: { <T extends Derived>(a: T): T; <T extends Base>(a: T): T; }): any[]; (x: { <T extends Derived2>(a: T): T; <T extends Base>(a: T): T; }): any[]; }
218218> : ^^^^^^ ^^^ ^^^^^^ ^^^ ^^^
219219
@@ -748,8 +748,8 @@ module WithGenericSignaturesInBaseType {
748748> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
749749
750750 declare function foo2(a2: <T>(x: T) => T[]): typeof a2;
751- >foo2 : { (a2: <T>(x: T) => T[]): <T>(x: T) => T[] ; (a2: any): any; }
752- > : ^^^^^^^ ^^^^ ^^^^^ ^^^^^ ^^^^^^^^^^^^^^^^^^^
751+ >foo2 : { (a2: <T>(x: T) => T[]): typeof a2 ; (a2: any): any; }
752+ > : ^^^^^^^ ^^^ ^^^^^^^^^^^^^^^^^^^
753753>a2 : <T>(x: T) => T[]
754754> : ^ ^^^^^ ^^^^^
755755>x : T
@@ -783,8 +783,8 @@ module WithGenericSignaturesInBaseType {
783783> : ^^^^^^^^^^^^^^^^^^^^^
784784
785785 declare function foo3(a2: <T>(x: T) => string[]): typeof a2;
786- >foo3 : { (a2: <T>(x: T) => string[]): <T>(x: T) => string[] ; (a2: any): any; }
787- > : ^^^^^^^ ^^^^ ^^^^^ ^^^^^ ^^^^^^^^^^^^^^^^^^^
786+ >foo3 : { (a2: <T>(x: T) => string[]): typeof a2 ; (a2: any): any; }
787+ > : ^^^^^^^ ^^^ ^^^^^^^^^^^^^^^^^^^
788788>a2 : <T>(x: T) => string[]
789789> : ^ ^^^^^ ^^^^^
790790>x : T
0 commit comments