Overshadowing variables should not be allowed #287
matiwinnetou
started this conversation in
Syntax suggestions
Replies: 1 comment 8 replies
-
The underlying UPLC also supports shadowing natively it's safe to let it happen, and it's pretty useful sometimes. I think this kind of thing can be up to personal preference, if you don't want to shadow you don't have to. |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The following Aiken code will compile:
I believe this could should not compile and the compiler should complain that variable a is already defined in the scope.
Beta Was this translation helpful? Give feedback.
All reactions