From ca26ca1dd07dd3f5a4753a7354334d69f021ffb1 Mon Sep 17 00:00:00 2001 From: Wesley Wigham Date: Thu, 8 Oct 2020 17:20:09 -0700 Subject: [PATCH] Small baseline change - find() will get the first declaration with a body --- tests/baselines/reference/constructorOverloads1.errors.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/baselines/reference/constructorOverloads1.errors.txt b/tests/baselines/reference/constructorOverloads1.errors.txt index 4cf1b5dcd80..f801a587f3c 100644 --- a/tests/baselines/reference/constructorOverloads1.errors.txt +++ b/tests/baselines/reference/constructorOverloads1.errors.txt @@ -49,7 +49,7 @@ tests/cases/compiler/constructorOverloads1.ts(17,18): error TS2769: No overload !!! error TS2769: Argument of type 'Foo' is not assignable to parameter of type 'string'. !!! error TS2769: Overload 2 of 2, '(n: number): Foo', gave the following error. !!! error TS2769: Argument of type 'Foo' is not assignable to parameter of type 'number'. -!!! 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. +!!! 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. var f4 = new Foo([f1,f2,f3]); ~~~~~~~~~~ !!! error TS2769: No overload matches this call. @@ -57,7 +57,7 @@ tests/cases/compiler/constructorOverloads1.ts(17,18): error TS2769: No overload !!! error TS2769: Argument of type 'Foo[]' is not assignable to parameter of type 'string'. !!! error TS2769: Overload 2 of 2, '(n: number): Foo', gave the following error. !!! error TS2769: Argument of type 'Foo[]' is not assignable to parameter of type 'number'. -!!! 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. +!!! 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. f1.bar1(); f1.bar2();