Conflicts: src/compiler/diagnosticInformationMap.generated.ts src/compiler/diagnosticMessages.json
12 lines
458 B
Plaintext
12 lines
458 B
Plaintext
tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck52.ts(3,11): error TS2504: No best common type exists among yield expressions.
|
|
|
|
|
|
==== tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck52.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;
|
|
} |