mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
17 lines
425 B
TypeScript
17 lines
425 B
TypeScript
//// [tests/cases/conformance/es6/functionDeclarations/FunctionDeclaration7_es6.ts] ////
|
|
|
|
//// [FunctionDeclaration7_es6.ts]
|
|
function*bar() {
|
|
// 'yield' here is an identifier, and not a yield expression.
|
|
function*foo(a = yield) {
|
|
}
|
|
}
|
|
|
|
//// [FunctionDeclaration7_es6.js]
|
|
"use strict";
|
|
function* bar() {
|
|
// 'yield' here is an identifier, and not a yield expression.
|
|
function* foo(a = yield) {
|
|
}
|
|
}
|