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

Tracking Issue #1296 ;
This commit is contained in:
kristopher tate 2018-07-27 19:19:47 +09:00
parent da5f3d5c4c
commit 9366a58bdd

View File

@ -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;
}