-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
compiler assertion failure when unwrapping ?@Frame() #5706
Copy link
Copy link
Open
Labels
bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behavior
Milestone
Description
fn frameFunc() void {
suspend;
suspend;
}
test "unwrap @Frame()" {
var frame: ?@Frame(frameFunc) = null;
frame = async frameFunc();
if(frame) |f| resume f;
resume frame.?;
}Code Generation [1/708] when analyzing /root/testing/test.zig:134:13 in compiler source at /deps/zig/src/codegen.cpp:1811: assertion failed. This is a bug in the Zig compiler.
Unable to dump stack trace: debug info stripped
Aborted
Note: the line in question is the assignment to frame, however this also fails when unwrapping with an if statement or the unconditional unwrap.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behavior