2015-06-18 22:56:21 +02:00
|
|
|
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.
|
2015-05-12 02:40:38 +02:00
|
|
|
|
|
|
|
|
2015-06-18 22:56:21 +02:00
|
|
|
==== tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck55.ts (2 errors) ====
|
2015-05-12 02:40:38 +02:00
|
|
|
function* g() {
|
|
|
|
var x = class C extends (yield) {};
|
2015-06-18 22:56:21 +02:00
|
|
|
~~~~~~~
|
|
|
|
!!! error TS2507: Type 'any' is not a constructor function type.
|
|
|
|
~~~~~
|
|
|
|
!!! error TS1163: A 'yield' expression is only allowed in a generator body.
|
2015-05-12 02:40:38 +02:00
|
|
|
}
|