diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2018-03-24 19:31:00 -0400 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2018-03-24 19:31:00 -0400 |
| commit | a43c7af3d1e41ccee73678f114bb3844febcaad6 (patch) | |
| tree | 5a1581139c05ad3b5aa0e9eb0d4a2a99c16203bb | |
| parent | 897e783763d60449ad1b9514cb5ba86a38f7ae4a (diff) | |
| download | zig-a43c7af3d1e41ccee73678f114bb3844febcaad6.tar.gz zig-a43c7af3d1e41ccee73678f114bb3844febcaad6.zip | |
add comptime test for the type of suspend promise
| -rw-r--r-- | test/cases/coroutines.zig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/cases/coroutines.zig b/test/cases/coroutines.zig index 25a75dca5c..922c1a7e58 100644 --- a/test/cases/coroutines.zig +++ b/test/cases/coroutines.zig @@ -56,6 +56,7 @@ var result = false; async fn testSuspendBlock() void { suspend |p| { + comptime assert(@typeOf(p) == promise->void); a_promise = p; } result = true; |
