This is all of the expected 0.14.0 progress on #21530, which can now be postponed once this commit is merged. This required rewriting the (un)wrap operations since the original implementations were extremely buggy. Also adds an easy way to retrigger Sema OPV bugs so that I don't have to keep updating #22419 all the time.
16 lines
245 B
Zig
16 lines
245 B
Zig
export fn entry() void {
|
|
_ = async foo();
|
|
}
|
|
fn foo() void {
|
|
suspend {
|
|
suspend {}
|
|
}
|
|
}
|
|
|
|
// error
|
|
// backend=stage2
|
|
// target=native
|
|
//
|
|
// :6:9: error: cannot suspend inside suspend block
|
|
// :5:5: note: other suspend block here
|