Files
tsgo/testdata/baselines/reference/submodule/compiler/castOfYield.symbols
2025-02-26 14:53:49 -08:00

12 lines
274 B
Plaintext

//// [tests/cases/compiler/castOfYield.ts] ////
=== castOfYield.ts ===
function* f() {
>f : Symbol(f, Decl(castOfYield.ts, 0, 0))
<number> (yield 0);
// Unlike await, yield is not allowed to appear in a simple unary expression.
<number> yield 0;
}