mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
13 lines
432 B
Plaintext
13 lines
432 B
Plaintext
//// [tests/cases/conformance/es6/functionDeclarations/FunctionDeclaration7_es6.ts] ////
|
|
|
|
=== FunctionDeclaration7_es6.ts ===
|
|
function*bar() {
|
|
>bar : Symbol(bar, Decl(FunctionDeclaration7_es6.ts, 0, 0))
|
|
|
|
// 'yield' here is an identifier, and not a yield expression.
|
|
function*foo(a = yield) {
|
|
>foo : Symbol(foo, Decl(FunctionDeclaration7_es6.ts, 0, 16))
|
|
>a : Symbol(a, Decl(FunctionDeclaration7_es6.ts, 2, 15))
|
|
}
|
|
}
|