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

21 lines
1.2 KiB
Plaintext
Raw Normal View History

2015-05-30 20:41:33 +02:00
tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck39.ts(5,16): error TS1163: A 'yield' expression is only allowed in a generator body.
2015-06-02 02:40:35 +02:00
tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck39.ts(6,11): error TS1219: Experimental support for decorators is a feature that is subject to change in a future release. Specify '--experimentalDecorators' to remove this warning.
2015-05-30 20:41:33 +02:00
tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck39.ts(7,13): error TS1163: A 'yield' expression is only allowed in a generator body.
2015-05-05 01:15:55 +02:00
2015-06-02 02:40:35 +02:00
==== tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck39.ts (3 errors) ====
2015-05-05 01:15:55 +02:00
function decorator(x: any) {
return y => { };
}
function* g() {
@decorator(yield 0)
~~~~~
2015-05-30 20:41:33 +02:00
!!! error TS1163: A 'yield' expression is only allowed in a generator body.
2015-05-05 01:15:55 +02:00
class C {
2015-06-02 02:40:35 +02:00
~
!!! error TS1219: Experimental support for decorators is a feature that is subject to change in a future release. Specify '--experimentalDecorators' to remove this warning.
2015-05-05 01:15:55 +02:00
x = yield 0;
2015-05-30 20:41:33 +02:00
~~~~~
!!! error TS1163: A 'yield' expression is only allowed in a generator body.
2015-05-05 01:15:55 +02:00
}
2015-05-30 20:41:33 +02:00
}