Variable can be redefined #15
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
A variable can be redefined in the same scope, with either the same or a different type.
Example:
I'm not saying that's bad but it was unexpected. I discovered this by having a bug: a function had an input named
b, and I also created a variable namedb, which resulted in unexpected behavior.I'm reporting this as I assume this is unintended behavior, given how strict the language is with unused variables.
After some reflection, I think this issue should most likely be ignored for now. There are far more pressing issues, plus this is a semantic issue not a backend issue.
If you agree, 1) please close this, and 2) I'll try to avoid reporting these issues in the future.
Definitely unintended. Fix coming soon.
Fixed in
088b883c08.No worries, these types of reports are very useful!
They are just as important as new feature development, if not more important.
Ok! Thx, closing.