std.meta.FieldEnum
for type with one field does not work in std.EnumArray
#22506
Labels
bug
Observed behavior contradicts documented or intended behavior
standard library
This issue involves writing Zig code for the standard library.
Milestone
Zig Version
0.14.0-dev.2647+5322459a0
Steps to Reproduce and Observed Behavior
Using an enum generated by
std.meta.FieldEnum
from a type with exactly one field in astd.EnumArray
fails to compile ifiterator.next()
is called.Example
fails to compile with the error message
Expected Behavior
I would expect it to compile and behave like an enum implemented by hand.
The text was updated successfully, but these errors were encountered: