Skip to content

Enum not working as constant in statements #303

Open

Description

@MiranDMC

Trying to use enum as value in comparison causes compilation error:
image

Activity

  1. MiranDMC commented on Jul 17, 2025

    @MiranDMC
    Author

    I was afraid of namespace collisions, but in current state even such ridiculous scenario:

    Char Button = 0
    is_button_pressed {pad} Button {buttonId} Button.DpadUp
    

    decompiles correctly as

    Pad.IsButtonPressed(0@, Button.DpadUp)
    

    Currently language service correctly prioritizes user defined variable over enum when Button. is typed.

  2. added this to the Enum Support milestone on Aug 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions