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
tests/cases/compiler/callOnInstance.ts(7,19): error TS2350: Only a void function can be called with the 'new' keyword.
3
4
tests/cases/compiler/callOnInstance.ts(7,19): error TS2554: Expected 0 arguments, but got 1.
4
5
tests/cases/compiler/callOnInstance.ts(10,1): error TS2349: Cannot invoke an expression whose type lacks a call signature. Type 'C' has no compatible call signatures.
Copy file name to clipboardExpand all lines: tests/baselines/reference/chainedCallsWithTypeParameterConstrainedToOtherTypeParameter.errors.txt
+22-2
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,16 @@
1
+
<<<<<<< b059135c51ee93f8fb44dd70a2ca67674ff7a877
1
2
tests/cases/compiler/chainedCallsWithTypeParameterConstrainedToOtherTypeParameter.ts(19,64): error TS2741: Property 'z' is missing in type 'B' but required in type 'C'.
3
+
=======
4
+
tests/cases/compiler/chainedCallsWithTypeParameterConstrainedToOtherTypeParameter.ts(19,59): error TS2345: Argument of type '(c: C) => B' is not assignable to parameter of type '(x: C) => C'.
5
+
Type 'B' is not assignable to type 'C'.
6
+
Property 'z' is missing in type 'B'.
7
+
tests/cases/compiler/chainedCallsWithTypeParameterConstrainedToOtherTypeParameter.ts(19,76): error TS2345: Argument of type '(b: C) => A' is not assignable to parameter of type '(x: C) => C'.
// Ok to go down the chain, but error to try to climb back up
23
32
(new Chain(new A)).then(a => new B).then(b => new C).then(c => new B).then(b => new A);
33
+
<<<<<<< b059135c51ee93f8fb44dd70a2ca67674ff7a877
24
34
~~~~~
25
35
!!! error TS2741: Property 'z' is missing in type 'B' but required in type 'C'.
26
36
!!! related TS2728 tests/cases/compiler/chainedCallsWithTypeParameterConstrainedToOtherTypeParameter.ts:15:5: 'z' is declared here.
27
-
!!! related TS6502 tests/cases/compiler/chainedCallsWithTypeParameterConstrainedToOtherTypeParameter.ts:3:27: The expected type comes from the return type of this signature.
37
+
!!! related TS6502 tests/cases/compiler/chainedCallsWithTypeParameterConstrainedToOtherTypeParameter.ts:3:27: The expected type comes from the return type of this signature.
38
+
=======
39
+
~~~~~~~~~~
40
+
!!! error TS2345: Argument of type '(c: C) => B' is not assignable to parameter of type '(x: C) => C'.
41
+
!!! error TS2345: Type 'B' is not assignable to type 'C'.
42
+
!!! error TS2345: Property 'z' is missing in type 'B'.
43
+
~~~~~~~~~~
44
+
!!! error TS2345: Argument of type '(b: C) => A' is not assignable to parameter of type '(x: C) => C'.
45
+
!!! error TS2345: Type 'A' is not assignable to type 'C'.
46
+
!!! error TS2345: Property 'z' is missing in type 'A'.
0 commit comments