diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2018-04-09 00:52:45 -0400 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2018-04-09 00:52:45 -0400 |
| commit | e85a10e9f5f6b17736babd321da8dceb72ea17af (patch) | |
| tree | 70b94f7e1e5f761ad6fe95138ef9832cd0c32baf /test | |
| parent | cbda0fa78c37dd84821061309469c85a2281174c (diff) | |
| download | zig-e85a10e9f5f6b17736babd321da8dceb72ea17af.tar.gz zig-e85a10e9f5f6b17736babd321da8dceb72ea17af.zip | |
async tcp server proof of concept
Diffstat (limited to 'test')
| -rw-r--r-- | test/cases/coroutines.zig | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/test/cases/coroutines.zig b/test/cases/coroutines.zig index fbd8f08607..6d28b98c9d 100644 --- a/test/cases/coroutines.zig +++ b/test/cases/coroutines.zig @@ -224,17 +224,3 @@ async fn printTrace(p: promise->error!void) void { } }; } - -test "coroutine in a struct field" { - const Foo = struct { - bar: async fn() void, - }; - var foo = Foo { - .bar = simpleAsyncFn2, - }; - cancel try async<std.debug.global_allocator> foo.bar(); -} - -async fn simpleAsyncFn2() void { - suspend; -} |
