12 lines
677 B
Plaintext
12 lines
677 B
Plaintext
tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck55.ts(2,29): error TS2507: Type 'any' is not a constructor function type.
|
|
tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck55.ts(2,30): error TS1163: A 'yield' expression is only allowed in a generator body.
|
|
|
|
|
|
==== tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck55.ts (2 errors) ====
|
|
function* g() {
|
|
var x = 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.
|
|
} |