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

14 lines
645 B
Plaintext
Raw Normal View History

tests/cases/conformance/es6/yieldExpressions/YieldExpression16_es6.ts(1,9): error TS9001: Generators are not currently supported.
2014-12-17 04:11:07 +01:00
tests/cases/conformance/es6/yieldExpressions/YieldExpression16_es6.ts(3,5): error TS1163: 'yield' expression must be contained_within a generator declaration.
2014-11-25 07:45:33 +01:00
2014-12-17 04:11:07 +01:00
==== tests/cases/conformance/es6/yieldExpressions/YieldExpression16_es6.ts (2 errors) ====
2014-11-25 07:45:33 +01:00
function* foo() {
2014-11-25 22:54:26 +01:00
~
!!! error TS9001: Generators are not currently supported.
2014-11-25 07:45:33 +01:00
function bar() {
yield foo;
2014-12-17 04:11:07 +01:00
~~~~~
!!! error TS1163: 'yield' expression must be contained_within a generator declaration.
2014-11-25 07:45:33 +01:00
}
}