TypeScript/tests/baselines/reference/generatorTypeCheck60.errors.txt

12 lines
653 B
Plaintext
Raw Permalink Normal View History

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-06-15 19:44:21 +02:00
==== tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck60.ts (2 errors) ====
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.
}