gobra
gobra copied to clipboard
Typechecking with multiAssignableTo.errors
Typechecking with multiAssignableTo.errors using two times the same identifier in 'lefts' in a short var declaration passes typechecking when it shouldn't.
An example is the following:
for i, i := range x {...
which typechecks.
This is related to a more general problem in Gobra where we often forgot to check for redeclarations, e.g., https://github.com/viperproject/gobra/issues/484