2015-05-12 02:48:12 +02:00
|
|
|
tests/cases/conformance/es6/yieldExpressions/YieldExpression15_es6.ts(2,6): error TS1163: A 'yield' expression is only allowed in a generator body.
|
2014-11-25 07:45:33 +01:00
|
|
|
|
|
|
|
|
2014-11-25 07:53:55 +01:00
|
|
|
==== tests/cases/conformance/es6/yieldExpressions/YieldExpression15_es6.ts (1 errors) ====
|
2014-11-25 07:45:33 +01:00
|
|
|
var v = () => {
|
|
|
|
yield foo
|
|
|
|
~~~~~
|
2015-05-12 02:48:12 +02:00
|
|
|
!!! error TS1163: A 'yield' expression is only allowed in a generator body.
|
2014-11-25 07:45:33 +01:00
|
|
|
}
|