2015-06-02 02:40:35 +02:00
tests/cases/conformance/es6/yieldExpressions/YieldExpression11_es6.ts(2,3): error TS1220: Generators are only available when targeting ECMAScript 6 or higher.
2015-05-06 01:54:51 +02:00
tests/cases/conformance/es6/yieldExpressions/YieldExpression11_es6.ts(3,11): error TS2304: Cannot find name 'foo'.
2014-11-25 21:16:31 +01:00
2015-05-06 01:54:51 +02:00
==== tests/cases/conformance/es6/yieldExpressions/YieldExpression11_es6.ts (2 errors) ====
2014-11-25 21:16:31 +01:00
class C {
*foo() {
~
2015-06-02 02:40:35 +02:00
!!! error TS1220: Generators are only available when targeting ECMAScript 6 or higher.
2014-11-25 21:16:31 +01:00
yield(foo);
2015-05-06 01:54:51 +02:00
~~~
!!! error TS2304: Cannot find name 'foo'.
2014-11-25 21:16:31 +01:00
}
}