mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
36 lines
3.6 KiB
Diff
36 lines
3.6 KiB
Diff
--- old.genericCallAtYieldExpressionInGenericCall1.errors.txt
|
|
+++ new.genericCallAtYieldExpressionInGenericCall1.errors.txt
|
|
@@= skipped -0, +0 lines =@@
|
|
genericCallAtYieldExpressionInGenericCall1.ts(26,25): error TS2488: Type '() => T' must have a '[Symbol.iterator]()' method that returns an iterator.
|
|
genericCallAtYieldExpressionInGenericCall1.ts(56,8): error TS2345: Argument of type '<T>(value: T) => Generator<number, void, any>' is not assignable to parameter of type '(value: unknown) => Generator<never, unknown, unknown>'.
|
|
- Call signature return types 'Generator<number, void, any>' and 'Generator<never, unknown, unknown>' are incompatible.
|
|
+ Type 'Generator<number, void, any>' is not assignable to type 'Generator<never, unknown, unknown>'.
|
|
The types returned by 'next(...)' are incompatible between these types.
|
|
Type 'IteratorResult<number, void>' is not assignable to type 'IteratorResult<never, unknown>'.
|
|
Type 'IteratorYieldResult<number>' is not assignable to type 'IteratorResult<never, unknown>'.
|
|
Type 'IteratorYieldResult<number>' is not assignable to type 'IteratorYieldResult<never>'.
|
|
Type 'number' is not assignable to type 'never'.
|
|
genericCallAtYieldExpressionInGenericCall1.ts(61,8): error TS2345: Argument of type '<T>(value: T) => Generator<number, void, any>' is not assignable to parameter of type '(value: unknown) => Generator<never, unknown, unknown>'.
|
|
- Call signature return types 'Generator<number, void, any>' and 'Generator<never, unknown, unknown>' are incompatible.
|
|
+ Type 'Generator<number, void, any>' is not assignable to type 'Generator<never, unknown, unknown>'.
|
|
The types returned by 'next(...)' are incompatible between these types.
|
|
Type 'IteratorResult<number, void>' is not assignable to type 'IteratorResult<never, unknown>'.
|
|
Type 'IteratorYieldResult<number>' is not assignable to type 'IteratorResult<never, unknown>'.
|
|
@@= skipped -75, +75 lines =@@
|
|
outer3(function* <T>(value: T) {
|
|
~~~~~~~~
|
|
!!! error TS2345: Argument of type '<T>(value: T) => Generator<number, void, any>' is not assignable to parameter of type '(value: unknown) => Generator<never, unknown, unknown>'.
|
|
-!!! error TS2345: Call signature return types 'Generator<number, void, any>' and 'Generator<never, unknown, unknown>' are incompatible.
|
|
+!!! error TS2345: Type 'Generator<number, void, any>' is not assignable to type 'Generator<never, unknown, unknown>'.
|
|
!!! error TS2345: The types returned by 'next(...)' are incompatible between these types.
|
|
!!! error TS2345: Type 'IteratorResult<number, void>' is not assignable to type 'IteratorResult<never, unknown>'.
|
|
!!! error TS2345: Type 'IteratorYieldResult<number>' is not assignable to type 'IteratorResult<never, unknown>'.
|
|
@@= skipped -13, +13 lines =@@
|
|
outer3(function* <T>(value: T) {
|
|
~~~~~~~~
|
|
!!! error TS2345: Argument of type '<T>(value: T) => Generator<number, void, any>' is not assignable to parameter of type '(value: unknown) => Generator<never, unknown, unknown>'.
|
|
-!!! error TS2345: Call signature return types 'Generator<number, void, any>' and 'Generator<never, unknown, unknown>' are incompatible.
|
|
+!!! error TS2345: Type 'Generator<number, void, any>' is not assignable to type 'Generator<never, unknown, unknown>'.
|
|
!!! error TS2345: The types returned by 'next(...)' are incompatible between these types.
|
|
!!! error TS2345: Type 'IteratorResult<number, void>' is not assignable to type 'IteratorResult<never, unknown>'.
|
|
!!! error TS2345: Type 'IteratorYieldResult<number>' is not assignable to type 'IteratorResult<never, unknown>'.
|