mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
12 lines
274 B
Plaintext
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;
|
|
}
|
|
|