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

RakuAST: Add RakuAST::Type::Enum #5207

Closed
wants to merge 1 commit into from

Commits on Feb 26, 2023

  1. RakuAST: Add support for 'enum'

    This adds RakuAST::Type::Enum. Currently there are a few deviations from
    base:
    
      - Base (sort of) allows re-declaration of an installed symbol:
            `class E::C {}; enum E<C>`
        The branch behavior is to die with a redeclaration error.
        Arguably, the branch behavior is preferable.
      - Base allows redeclaration of lexical symbols in the current
        lexpad:
            `enum E1<a b c>; enum E2<b c d>;`
        This raises a 'Potential difficulties' message and binds an
        `X::PoisonedAlias` failure to `b` and `c`, but allows referencing
        via `E1::b` and `E2::c`.
      - The behavior of
            `enum E «:A(5), B C»`
        is not working as expected because the underlying «» is still NYI.
    ab5tract committed Feb 26, 2023
    Configuration menu
    Copy the full SHA
    7d4764b View commit details
    Browse the repository at this point in the history