Inferred enum types produce error: values of type '(enum literal)' must be comptime known
#10294
Labels
bug
Observed behavior contradicts documented or intended behavior
Zig Version
0.8.1
Steps to Reproduce
not working:
working:
Expected Behavior
I wouldn't expect to have to specify the enum type in each switch case here. It should be inferred from the type of
val
.Actual Behavior
produces a confusing compiler error
error: values of type '(enum literal)' must be comptime known
The text was updated successfully, but these errors were encountered: