aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkristopher tate <kt@connectfree.co.jp>2018-07-29 17:17:13 +0900
committerkristopher tate <kt@connectfree.co.jp>2018-08-02 16:59:11 +0900
commit79792a32e19b5ef7a918655f09ac32dd94c8f19e (patch)
tree13bac51c09e99408798ef4e1e232a9fe5af3a2b2
parentbc032a89cc13e483a55c58bcba4593229dd7f3ed (diff)
downloadzig-79792a32e19b5ef7a918655f09ac32dd94c8f19e.tar.gz
zig-79792a32e19b5ef7a918655f09ac32dd94c8f19e.zip
test/cases/coroutine_await_struct.zig: update test to reflect that the promise symbol is no in scope with suspend;
Tracking Issue #1296 ;
-rw-r--r--test/cases/coroutine_await_struct.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/cases/coroutine_await_struct.zig b/test/cases/coroutine_await_struct.zig
index 56c526092d..79168715d8 100644
--- a/test/cases/coroutine_await_struct.zig
+++ b/test/cases/coroutine_await_struct.zig
@@ -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 };