You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/baselines/reference/constructorOverloads1.errors.txt
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -49,13 +49,15 @@ tests/cases/compiler/constructorOverloads1.ts(17,18): error TS2769: No overload
49
49
!!! error TS2769: Argument of type 'Foo' is not assignable to parameter of type 'string'.
50
50
!!! error TS2769: Overload 2 of 2, '(n: number): Foo', gave the following error.
51
51
!!! error TS2769: Argument of type 'Foo' is not assignable to parameter of type 'number'.
52
+
!!! related TS2793 tests/cases/compiler/constructorOverloads1.ts:4:5: The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible.
52
53
var f4 = new Foo([f1,f2,f3]);
53
54
~~~~~~~~~~
54
55
!!! error TS2769: No overload matches this call.
55
56
!!! error TS2769: Overload 1 of 2, '(s: string): Foo', gave the following error.
56
57
!!! error TS2769: Argument of type 'Foo[]' is not assignable to parameter of type 'string'.
57
58
!!! error TS2769: Overload 2 of 2, '(n: number): Foo', gave the following error.
58
59
!!! error TS2769: Argument of type 'Foo[]' is not assignable to parameter of type 'number'.
60
+
!!! related TS2793 tests/cases/compiler/constructorOverloads1.ts:4:5: The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible.
Copy file name to clipboardExpand all lines: tests/baselines/reference/functionOverloads2.errors.txt
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -15,4 +15,5 @@ tests/cases/compiler/functionOverloads2.ts(4,13): error TS2769: No overload matc
15
15
!!! error TS2769: Overload 1 of 2, '(bar: string): string', gave the following error.
16
16
!!! error TS2769: Argument of type 'boolean' is not assignable to parameter of type 'string'.
17
17
!!! error TS2769: Overload 2 of 2, '(bar: number): number', gave the following error.
18
-
!!! error TS2769: Argument of type 'boolean' is not assignable to parameter of type 'number'.
18
+
!!! error TS2769: Argument of type 'boolean' is not assignable to parameter of type 'number'.
19
+
!!! related TS2793 tests/cases/compiler/functionOverloads2.ts:3:10: The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible.
Copy file name to clipboardExpand all lines: tests/baselines/reference/functionOverloads27.errors.txt
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -8,4 +8,5 @@ tests/cases/compiler/functionOverloads27.ts(4,13): error TS2345: Argument of typ
8
8
var x = foo(5);
9
9
~
10
10
!!! error TS2345: Argument of type 'number' is not assignable to parameter of type 'string'.
11
+
!!! related TS2793 tests/cases/compiler/functionOverloads27.ts:3:10: The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible.
Copy file name to clipboardExpand all lines: tests/baselines/reference/functionOverloads40.errors.txt
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -18,4 +18,5 @@ tests/cases/compiler/functionOverloads40.ts(4,15): error TS2769: No overload mat
18
18
!!! error TS2769: Type 'string' is not assignable to type 'boolean'.
19
19
!!! related TS6500 tests/cases/compiler/functionOverloads40.ts:1:19: The expected type comes from property 'a' which is declared here on type '{ a: number; }'
20
20
!!! related TS6500 tests/cases/compiler/functionOverloads40.ts:2:19: The expected type comes from property 'a' which is declared here on type '{ a: boolean; }'
21
+
!!! related TS2793 tests/cases/compiler/functionOverloads40.ts:3:10: The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible.
Copy file name to clipboardExpand all lines: tests/baselines/reference/heterogeneousArrayAndOverloads.errors.txt
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -17,5 +17,6 @@ tests/cases/compiler/heterogeneousArrayAndOverloads.ts(9,26): error TS2769: No o
17
17
!!! error TS2769: No overload matches this call.
18
18
!!! error TS2769: Overload 1 of 2, '(arg1: number[]): any', gave the following error.
19
19
!!! error TS2769: Type 'string' is not assignable to type 'number'.
20
+
!!! related TS2793 tests/cases/compiler/heterogeneousArrayAndOverloads.ts:4:5: The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible.
!!! error TS2769: Argument of type 'C1' is not assignable to parameter of type 'IFoo2'.
100
100
!!! error TS2769: The types returned by 'p1(...)' are incompatible between these types.
101
101
!!! error TS2769: Type 'string' is not assignable to type 'number'.
102
+
!!! related TS2793 tests/cases/compiler/incompatibleTypes.ts:39:10: The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible.
!!! error TS2769: Overload 2 of 2, '(s: { c: { b: string; }; d: string; }): string', gave the following error.
115
116
!!! error TS2769: Argument of type '{ e: number; f: number; }' is not assignable to parameter of type '{ c: { b: string; }; d: string; }'.
116
117
!!! error TS2769: Object literal may only specify known properties, and 'e' does not exist in type '{ c: { b: string; }; d: string; }'.
118
+
!!! related TS2793 tests/cases/compiler/incompatibleTypes.ts:47:10: The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible.
0 commit comments