12 lines
653 B
Plaintext
12 lines
653 B
Plaintext
tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck60.ts(2,21): error TS2507: Type 'any' is not a constructor function type.
|
|
tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck60.ts(2,22): error TS1163: A 'yield' expression is only allowed in a generator body.
|
|
|
|
|
|
==== tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck60.ts (2 errors) ====
|
|
function* g() {
|
|
class C extends (yield) {};
|
|
~~~~~~~
|
|
!!! error TS2507: Type 'any' is not a constructor function type.
|
|
~~~~~
|
|
!!! error TS1163: A 'yield' expression is only allowed in a generator body.
|
|
} |