2014-12-12 02:22:22 +01:00
|
|
|
tests/cases/conformance/es6/functionDeclarations/FunctionDeclaration7_es6.ts(1,9): error TS9001: Generators are not currently supported.
|
2014-12-17 04:11:07 +01:00
|
|
|
tests/cases/conformance/es6/functionDeclarations/FunctionDeclaration7_es6.ts(3,11): error TS9001: Generators are not currently supported.
|
2014-11-25 07:53:55 +01:00
|
|
|
tests/cases/conformance/es6/functionDeclarations/FunctionDeclaration7_es6.ts(3,20): error TS2304: Cannot find name 'yield'.
|
|
|
|
|
|
|
|
|
2014-12-17 04:11:07 +01:00
|
|
|
==== tests/cases/conformance/es6/functionDeclarations/FunctionDeclaration7_es6.ts (3 errors) ====
|
2014-11-25 07:53:55 +01:00
|
|
|
function*bar() {
|
2014-11-25 22:54:26 +01:00
|
|
|
~
|
2014-12-12 02:22:22 +01:00
|
|
|
!!! error TS9001: Generators are not currently supported.
|
2014-11-25 07:53:55 +01:00
|
|
|
// 'yield' here is an identifier, and not a yield expression.
|
|
|
|
function*foo(a = yield) {
|
2014-12-17 04:11:07 +01:00
|
|
|
~
|
|
|
|
!!! error TS9001: Generators are not currently supported.
|
2014-11-25 07:53:55 +01:00
|
|
|
~~~~~
|
|
|
|
!!! error TS2304: Cannot find name 'yield'.
|
|
|
|
}
|
|
|
|
}
|