Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Incorrect 'not all cases are covered' when using enums with nonconsecutive items #3060
produces compile error:
While this works:
(tested on 0.11.3 and devel)
According to the manual on enumeration types...
Then under case statements...
So I'm pretty sure this is correct behavior according to the manual.
It does seem like non-ordinals of this type could be handled, unlike strings; it would be useful.