Zezombye / overpy

High-level language for the Overwatch Workshop with support for compilation and decompilation.
GNU General Public License v3.0
179 stars 27 forks source link

Properly support redeclaration of enums #297

Open Zezombye opened 2 years ago

Zezombye commented 2 years ago
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.