* new_tests * move_all_clobbered_tests * remove all the tests that no longer exist * re-run flow tests * Move all the flow tests to tests/flow and prettier to tests/ * Move prettier tests to their own folders * Add jsfmt files * run prettier snapshot tests
27 lines
511 B
JavaScript
27 lines
511 B
JavaScript
async function *delegate_next() {
|
|
async function *inner() {
|
|
var x: void = yield; // error: number ~> void
|
|
}
|
|
yield *inner();
|
|
}
|
|
delegate_next().next(0);
|
|
|
|
async function *delegate_yield() {
|
|
async function *inner() {
|
|
yield 0;
|
|
}
|
|
yield *inner();
|
|
}
|
|
(async () => {
|
|
for await (const x of delegate_yield()) {
|
|
(x: void); // error: number ~> void
|
|
}
|
|
});
|
|
|
|
async function *delegate_return() {
|
|
async function *inner() {
|
|
return 0;
|
|
}
|
|
var x: void = yield *inner(); // error: number ~> void
|
|
}
|