14 lines
No EOL
657 B
Text
14 lines
No EOL
657 B
Text
tests/cases/conformance/es6/functionDeclarations/FunctionDeclaration7_es6.ts(1,9): error TS9001: 'generators' are not currently supported.
|
|
tests/cases/conformance/es6/functionDeclarations/FunctionDeclaration7_es6.ts(3,20): error TS2304: Cannot find name 'yield'.
|
|
|
|
|
|
==== tests/cases/conformance/es6/functionDeclarations/FunctionDeclaration7_es6.ts (2 errors) ====
|
|
function*bar() {
|
|
~
|
|
!!! error TS9001: 'generators' are not currently supported.
|
|
// 'yield' here is an identifier, and not a yield expression.
|
|
function*foo(a = yield) {
|
|
~~~~~
|
|
!!! error TS2304: Cannot find name 'yield'.
|
|
}
|
|
} |