aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkristopher tate <kt@connectfree.co.jp>2018-07-29 17:16:36 +0900
committerkristopher tate <kt@connectfree.co.jp>2018-08-02 16:59:11 +0900
commitbc032a89cc13e483a55c58bcba4593229dd7f3ed (patch)
tree7e376899b6d98c5684ecfbaf3556e8e62248ae91
parent9fe140abad11a15a8bb81b3599600ca1ec6f00d0 (diff)
downloadzig-bc032a89cc13e483a55c58bcba4593229dd7f3ed.tar.gz
zig-bc032a89cc13e483a55c58bcba4593229dd7f3ed.zip
std/zig/parser_test.zig: update test to reflect that the promise symbol is no in scope with suspend;
Tracking Issue #1296 ;
-rw-r--r--std/zig/parser_test.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/std/zig/parser_test.zig b/std/zig/parser_test.zig
index 21259bec3c..32cdc8121f 100644
--- a/std/zig/parser_test.zig
+++ b/std/zig/parser_test.zig
@@ -1784,7 +1784,7 @@ test "zig fmt: coroutines" {
\\ x += 1;
\\ suspend;
\\ x += 1;
- \\ suspend |p| {}
+ \\ suspend;
\\ const p: promise->void = async simpleAsyncFn() catch unreachable;
\\ await p;
\\}