mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-05 16:38:05 -06:00
Small baseline change - find() will get the first declaration with a body
This commit is contained in:
parent
de204430ec
commit
ca26ca1dd0
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user