overpy icon indicating copy to clipboard operation
overpy copied to clipboard

Properly support redeclaration of enums

Open Zezombye opened this issue 2 years ago • 0 comments

enum Cooldown:
    ABILITY_1 = 0

enum Cooldown:
    HOOK = Cooldown.ABILITY_1

rule "":
 A = Cooldown.HOOK

Here the second declaration overwrites the first.

Either throw an error or merge both declarations.

Zezombye avatar Apr 30 '22 16:04 Zezombye