mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
12 lines
338 B
Plaintext
12 lines
338 B
Plaintext
castOfYield.ts(4,14): error TS1109: Expression expected.
|
|
|
|
|
|
==== castOfYield.ts (1 errors) ====
|
|
function* f() {
|
|
<number> (yield 0);
|
|
// Unlike await, yield is not allowed to appear in a simple unary expression.
|
|
<number> yield 0;
|
|
~~~~~
|
|
!!! error TS1109: Expression expected.
|
|
}
|
|
|