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/generatorTypeCheck63.errors.txt
+14-12
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,12 @@
1
-
tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck63.ts(24,14): error TS2322: Type '(a: State | 1) => IterableIterator<State | 1>' is not assignable to type 'Strategy<State>'.
2
-
Type 'IterableIterator<State | 1>' is not assignable to type 'IterableIterator<State>'.
3
-
Type 'State | 1' is not assignable to type 'State'.
4
-
Type '1' is not assignable to type 'State'.
1
+
tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck63.ts(24,61): error TS2345: Argument of type '(state: State) => IterableIterator<State | 1>' is not assignable to parameter of type '(a: StrategicState) => IterableIterator<StrategicState>'.
2
+
Type 'IterableIterator<State | 1>' is not assignable to type 'IterableIterator<StrategicState>'.
3
+
Type 'State | 1' is not assignable to type 'StrategicState'.
4
+
Type '1' has no properties in common with type 'StrategicState'.
5
5
tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck63.ts(29,70): error TS7025: Generator implicitly has type 'IterableIterator<any>' because it does not yield any values. Consider supplying a return type.
6
6
tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck63.ts(32,42): error TS2453: The type argument for type parameter 'T' cannot be inferred from the usage. Consider specifying the type arguments explicitly.
7
7
Type argument candidate 'State' is not a valid type argument because it is not a supertype of candidate '1'.
8
-
tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck63.ts(36,14): error TS2322: Type '(a: State | 1) => IterableIterator<State | 1>' is not assignable to type 'Strategy<State>'.
8
+
tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck63.ts(36,62): error TS2345: Argument of type '(state: State) => IterableIterator<State | 1>' is not assignable to parameter of type '(a: StrategicState) => IterableIterator<StrategicState>'.
9
+
Type 'IterableIterator<State | 1>' is not assignable to type 'IterableIterator<StrategicState>'.
!!! error TS2322: Type '(a: State | 1) => IterableIterator<State | 1>' is not assignable to type 'Strategy<State>'.
38
-
!!! error TS2322: Type 'IterableIterator<State | 1>' is not assignable to type 'IterableIterator<State>'.
39
-
!!! error TS2322: Type 'State | 1' is not assignable to type 'State'.
40
-
!!! error TS2322: Type '1' is not assignable to type 'State'.
37
+
~~~~~~~~
38
+
!!! error TS2345: Argument of type '(state: State) => IterableIterator<State | 1>' is not assignable to parameter of type '(a: StrategicState) => IterableIterator<StrategicState>'.
39
+
!!! error TS2345: Type 'IterableIterator<State | 1>' is not assignable to type 'IterableIterator<StrategicState>'.
40
+
!!! error TS2345: Type 'State | 1' is not assignable to type 'StrategicState'.
41
+
!!! error TS2345: Type '1' has no properties in common with type 'StrategicState'.
!!! error TS2322: Type '(a: State | 1) => IterableIterator<State | 1>' is not assignable to type 'Strategy<State>'.
59
+
~~~~~~~~
60
+
!!! error TS2345: Argument of type '(state: State) => IterableIterator<State | 1>' is not assignable to parameter of type '(a: StrategicState) => IterableIterator<StrategicState>'.
61
+
!!! error TS2345: Type 'IterableIterator<State | 1>' is not assignable to type 'IterableIterator<StrategicState>'.
Property 'doStuff' is missing in type '{ value: string; }'.
5
5
tests/cases/compiler/objectLiteralFunctionArgContextualTyping2.ts(10,17): error TS2345: Argument of type '{ value: string; what: number; }' is not assignable to parameter of type 'I2'.
6
6
Object literal may only specify known properties, and 'what' does not exist in type 'I2'.
7
-
tests/cases/compiler/objectLiteralFunctionArgContextualTyping2.ts(11,4): error TS2345: Argument of type '{ toString: (s: any) => any; }' is not assignable to parameter of type 'I2'.
8
-
Property 'value' is missing in type '{ toString: (s: any) => any; }'.
9
-
tests/cases/compiler/objectLiteralFunctionArgContextualTyping2.ts(12,4): error TS2345: Argument of type '{ toString: (s: string) => string; }' is not assignable to parameter of type 'I2'.
10
-
Property 'value' is missing in type '{ toString: (s: string) => string; }'.
11
-
tests/cases/compiler/objectLiteralFunctionArgContextualTyping2.ts(13,4): error TS2345: Argument of type '{ value: string; toString: (s: any) => any; }' is not assignable to parameter of type 'I2'.
12
-
Property 'doStuff' is missing in type '{ value: string; toString: (s: any) => any; }'.
7
+
tests/cases/compiler/objectLiteralFunctionArgContextualTyping2.ts(11,6): error TS2345: Argument of type '{ toString: (s: any) => any; }' is not assignable to parameter of type 'I2'.
8
+
Object literal may only specify known properties, and 'toString' does not exist in type 'I2'.
9
+
tests/cases/compiler/objectLiteralFunctionArgContextualTyping2.ts(12,6): error TS2345: Argument of type '{ toString: (s: string) => string; }' is not assignable to parameter of type 'I2'.
10
+
Object literal may only specify known properties, and 'toString' does not exist in type 'I2'.
11
+
tests/cases/compiler/objectLiteralFunctionArgContextualTyping2.ts(13,17): error TS2345: Argument of type '{ value: string; toString: (s: any) => any; }' is not assignable to parameter of type 'I2'.
12
+
Object literal may only specify known properties, and 'toString' does not exist in type 'I2'.
0 commit comments