Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mixin an enum item interferes with ACCEPTS semantics #5492

Open
grondilu opened this issue Dec 8, 2023 · 0 comments
Open

Mixin an enum item interferes with ACCEPTS semantics #5492

grondilu opened this issue Dec 8, 2023 · 0 comments

Comments

@grondilu
Copy link
Contributor

grondilu commented Dec 8, 2023

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

enum coin-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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants