Commit 9366a58bdd

kristopher tate <kt@connectfree.co.jp>
2018-07-27 12:19:47
test/cases/couroutines.zig: test @handle();
Tracking Issue #1296 ;
1 parent da5f3d5
Changed files (1)
test
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;
 }