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
enums are built using the enumHOW protocol; that is why they, unlike those classes built using classHow, it does not have a roles method. However, an enum can have a single role (in fact, it does have a $!role).
Expected Behavior
For consistency and because it effectively has a role, it should be possible to use ^roles on enums.
The text was updated successfully, but these errors were encountered:
JJ
added a commit
to Raku/doc
that referenced
this issue
Aug 1, 2018
The Problem
enum
s are built using the enumHOW protocol; that is why they, unlike those classes built using classHow, it does not have aroles
method. However, an enum can have a single role (in fact, it does have a $!role).Expected Behavior
For consistency and because it effectively has a role, it should be possible to use
^roles
on enums.The text was updated successfully, but these errors were encountered: