diff options
| author | kristopher tate <kt@connectfree.co.jp> | 2018-07-27 19:19:47 +0900 |
|---|---|---|
| committer | kristopher tate <kt@connectfree.co.jp> | 2018-08-02 16:50:08 +0900 |
| commit | 9366a58bdd91a8b5e7bc7d4babb6f91b989769db (patch) | |
| tree | f0dcd1ce1f853492f7f138acda3c3e3cd0b66900 | |
| parent | da5f3d5c4c79b1d0d0919a0226f5304081b2f049 (diff) | |
| download | zig-9366a58bdd91a8b5e7bc7d4babb6f91b989769db.tar.gz zig-9366a58bdd91a8b5e7bc7d4babb6f91b989769db.zip | |
test/cases/couroutines.zig: test @handle();
Tracking Issue #1296 ;
| -rw-r--r-- | test/cases/coroutines.zig | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/cases/coroutines.zig b/test/cases/coroutines.zig index 72a4ed0b38..53c5c3f906 100644 --- 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; } |
