TypeScript/tests/cases/conformance/es6/functionDeclarations/FunctionDeclaration7_es6.ts
2016-11-17 23:17:42 -08:00

6 lines
No EOL
135 B
TypeScript

// @target: es6
function*bar() {
// 'yield' here is an identifier, and not a yield expression.
function*foo(a = yield) {
}
}