2015-06-17 22:29:08 +02:00
|
|
|
tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck60.ts(2,21): error TS2507: Type 'any' is not a constructor function type.
|
2015-06-15 19:44:21 +02:00
|
|
|
tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck60.ts(2,22): error TS1163: A 'yield' expression is only allowed in a generator body.
|
2015-05-12 02:40:38 +02:00
|
|
|
|
|
|
|
|
2015-06-15 19:44:21 +02:00
|
|
|
==== tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck60.ts (2 errors) ====
|
2015-05-12 02:40:38 +02:00
|
|
|
function* g() {
|
|
|
|
class C extends (yield) {};
|
|
|
|
~~~~~~~
|
2015-06-17 22:29:08 +02:00
|
|
|
!!! error TS2507: Type 'any' is not a constructor function type.
|
2015-06-15 19:44:21 +02:00
|
|
|
~~~~~
|
|
|
|
!!! error TS1163: A 'yield' expression is only allowed in a generator body.
|
2015-05-12 02:40:38 +02:00
|
|
|
}
|