LLVM Basic Block has no termintor error when calling @errorName
with @as(error{}, undefined)
#19964
Labels
bug
Observed behavior contradicts documented or intended behavior
Zig Version
0.12.0
Steps to Reproduce and Observed Behavior
Expected Behavior
I would expect this to not crash the compiler. Ideally this would be a compile error, as the only way this happens is when you call
@errorName
on anerror{}
object, and the only way to create an instance oferror{}
is from coercing undefined. The current behavior of@errorName
with non-empty error sets could kept as is.The text was updated successfully, but these errors were encountered: