add comptime test for the type of suspend promise
This commit is contained in:
parent
897e783763
commit
a43c7af3d1
@ -56,6 +56,7 @@ var result = false;
|
||||
|
||||
async fn testSuspendBlock() void {
|
||||
suspend |p| {
|
||||
comptime assert(@typeOf(p) == promise->void);
|
||||
a_promise = p;
|
||||
}
|
||||
result = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user