Skip to content

Commit ca26ca1

Browse files
committed
Small baseline change - find() will get the first declaration with a body
1 parent de20443 commit ca26ca1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/baselines/reference/constructorOverloads1.errors.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,15 @@ tests/cases/compiler/constructorOverloads1.ts(17,18): error TS2769: No overload
4949
!!! error TS2769: Argument of type 'Foo' is not assignable to parameter of type 'string'.
5050
!!! error TS2769: Overload 2 of 2, '(n: number): Foo', gave the following error.
5151
!!! error TS2769: Argument of type 'Foo' is not assignable to parameter of type 'number'.
52-
!!! related TS2793 tests/cases/compiler/constructorOverloads1.ts:7:5: The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible.
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.
5353
var f4 = new Foo([f1,f2,f3]);
5454
~~~~~~~~~~
5555
!!! error TS2769: No overload matches this call.
5656
!!! error TS2769: Overload 1 of 2, '(s: string): Foo', gave the following error.
5757
!!! error TS2769: Argument of type 'Foo[]' is not assignable to parameter of type 'string'.
5858
!!! error TS2769: Overload 2 of 2, '(n: number): Foo', gave the following error.
5959
!!! error TS2769: Argument of type 'Foo[]' is not assignable to parameter of type 'number'.
60-
!!! related TS2793 tests/cases/compiler/constructorOverloads1.ts:7:5: The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible.
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.
6161

6262
f1.bar1();
6363
f1.bar2();

0 commit comments

Comments
 (0)