cf4ca1fc3c
Conflicts: src/compiler/diagnosticInformationMap.generated.ts src/compiler/diagnosticMessages.json
12 lines
464 B
Plaintext
12 lines
464 B
Plaintext
tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck54.ts(3,11): error TS2504: No best common type exists among yield expressions.
|
|
|
|
|
|
==== tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck54.ts (1 errors) ====
|
|
class Foo { x: number }
|
|
class Baz { z: number }
|
|
function* g() {
|
|
~
|
|
!!! error TS2504: No best common type exists among yield expressions.
|
|
yield* [new Foo];
|
|
yield* [new Baz];
|
|
} |