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