2015-05-12 02:48:12 +02:00
|
|
|
tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck58.ts(3,20): error TS1163: A 'yield' expression is only allowed in a generator body.
|
2015-05-12 02:40:38 +02:00
|
|
|
|
|
|
|
|
2015-05-30 20:41:33 +02:00
|
|
|
==== tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck58.ts (1 errors) ====
|
2015-05-12 02:40:38 +02:00
|
|
|
function* g() {
|
|
|
|
class C {
|
|
|
|
static x = yield 0;
|
|
|
|
~~~~~
|
2015-05-12 02:48:12 +02:00
|
|
|
!!! error TS1163: A 'yield' expression is only allowed in a generator body.
|
2015-05-12 02:40:38 +02:00
|
|
|
};
|
|
|
|
}
|