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/inferFromGenericFunctionReturnTypes3.errors.txt
+27-1Lines changed: 27 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,13 @@
1
1
tests/cases/compiler/inferFromGenericFunctionReturnTypes3.ts(28,30): error TS2345: Argument of type 'string' is not assignable to parameter of type '"bar"'.
2
+
tests/cases/compiler/inferFromGenericFunctionReturnTypes3.ts(175,47): error TS2322: Type 'boolean' is not assignable to type 'true'.
3
+
tests/cases/compiler/inferFromGenericFunctionReturnTypes3.ts(180,26): error TS2322: Type '{ state: State.A; }[] | { state: State.B; }[]' is not assignable to type '{ state: State.A; }[]'.
4
+
Type '{ state: State.B; }[]' is not assignable to type '{ state: State.A; }[]'.
5
+
Type '{ state: State.B; }' is not assignable to type '{ state: State.A; }'.
6
+
Types of property 'state' are incompatible.
7
+
Type 'State.B' is not assignable to type 'State.A'.
!!! error TS2322: Type 'boolean' is not assignable to type 'true'.
190
+
!!! related TS6502 tests/cases/compiler/inferFromGenericFunctionReturnTypes3.ts:174:39: The expected type comes from the return type of this signature.
!!! error TS2322: Type '{ state: State.A; }[] | { state: State.B; }[]' is not assignable to type '{ state: State.A; }[]'.
198
+
!!! error TS2322: Type '{ state: State.B; }[]' is not assignable to type '{ state: State.A; }[]'.
199
+
!!! error TS2322: Type '{ state: State.B; }' is not assignable to type '{ state: State.A; }'.
200
+
!!! error TS2322: Types of property 'state' are incompatible.
201
+
!!! error TS2322: Type 'State.B' is not assignable to type 'State.A'.
202
+
!!! related TS6502 tests/cases/compiler/inferFromGenericFunctionReturnTypes3.ts:179:28: The expected type comes from the return type of this signature.
0 commit comments