mirror of
https://github.com/ziglang/zig.git
synced 2026-11-22 04:37:39 -05:00
test/cases/coroutine_await_struct.zig: update test to reflect that the promise symbol is no in scope with suspend;
Tracking Issue #1296 ;
This commit is contained in:
1 parent
bc032a89cc
commit
79792a32e1
1 file changed
+2
-2
@@ -30,9 +30,9 @@ async fn await_amain() void {
|
||||
}
|
||||
async fn await_another() Foo {
|
||||
await_seq('c');
|
||||
suspend |p| {
|
||||
suspend {
|
||||
await_seq('d');
|
||||
await_a_promise = p;
|
||||
await_a_promise = @handle();
|
||||
}
|
||||
await_seq('g');
|
||||
return Foo{ .x = 1234 };
|
||||
|
||||
Reference in new issue
Block a user