zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 9366a58bdd91a8b5e7bc7d4babb6f91b989769db (tree)
parent da5f3d5c4c79b1d0d0919a0226f5304081b2f049
Author: kristopher tate <kt@connectfree.co.jp>
Date:   Fri, 27 Jul 2018 19:19:47 +0900

test/cases/couroutines.zig: test @handle();

Tracking Issue #1296 ;

Diffstat:
Mtest/cases/coroutines.zig | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/test/cases/coroutines.zig b/test/cases/coroutines.zig @@ -66,6 +66,11 @@ async fn testSuspendBlock() void { comptime assert(@typeOf(p) == promise->void); a_promise = p; } + + //Test to make sure that @handle() works as advertised (issue #1296) + //var our_handle: promise = @handle(); + assert( a_promise == @handle() ); + result = true; }