You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Caused by .condbr_inline case (and equivalent code in the .condbr case) in Sema.analyzeBodyInner missing the required coercion to bool; see Sema.zirCondbr for the runtime context which performs the proper coercion.
Also, start using labeled switch statements when dispatching
maybe-runtime instructions like condbr to comptime-only variants like
condbr_inline.
This can't be merged until we get a zig1.wasm update due to ziglang#21385.
Resolves: ziglang#21405
Also, start using labeled switch statements when dispatching
maybe-runtime instructions like condbr to comptime-only variants like
condbr_inline.
This can't be merged until we get a zig1.wasm update due to ziglang#21385.
Resolves: ziglang#21405
Zig Version
0.14.0-dev.1550+4fba7336a
Steps to Reproduce and Observed Behavior
The following code compiles
That might cause a confusing bug in more complex cases, when the function
f
actually exists inx
.Expected Behavior
Like without
comptime
the compilation should fail withThe text was updated successfully, but these errors were encountered: