Open oconnor0 opened 8 months ago
Running this lobster program with https://github.com/aardappel/lobster/releases/tag/v2023.13 produces no warnings:
enum foo: bar let bar = 1 print "bar {bar}"
And this output:
bar bar
I've noticed shadowing and redefinition warnings/errors for variables so perhaps it needs to include enum names as well?
Yup it should. Lobster doesn't use a central table for all idents, instead it has separate ones per language features.. will look into how to best solve this.
Running this lobster program with https://github.com/aardappel/lobster/releases/tag/v2023.13 produces no warnings:
And this output:
I've noticed shadowing and redefinition warnings/errors for variables so perhaps it needs to include enum names as well?