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
It seems that when mixing a role to a enum item, &infix:<~~> behave differently.
Expected Behavior
Mixing a role to an enum item should (probably) not interfere with ACCEPTS semantics, at least not for anything not invoking the role. See Steps to reproduce.
Actual Behavior
See steps to reproduce.
Steps to Reproduce
enumcoin-flip <heads tail>;
say heads but role {} ~~ heads
Prints False. True was expected.
Environment
Operating system: fedora 39
Compiler version (rakudo -v or raku -v): Rakudo™ v2023.11-13-gecea48784.
Implementing the Raku® Programming Language v6.d.
Built on MoarVM version 2023.11.
The text was updated successfully, but these errors were encountered:
The Problem
It seems that when mixing a role to a enum item, &infix:<~~> behave differently.
Expected Behavior
Mixing a role to an enum item should (probably) not interfere with ACCEPTS semantics, at least not for anything not invoking the role. See Steps to reproduce.
Actual Behavior
See steps to reproduce.
Steps to Reproduce
Prints
False
.True
was expected.Environment
rakudo -v
orraku -v
): Rakudo™ v2023.11-13-gecea48784.Implementing the Raku® Programming Language v6.d.
Built on MoarVM version 2023.11.
The text was updated successfully, but these errors were encountered: