gobra icon indicating copy to clipboard operation
gobra copied to clipboard

Typechecking with multiAssignableTo.errors

Open Dspil opened this issue 2 years ago • 1 comments

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.

Dspil avatar Aug 05 '22 18:08 Dspil

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

jcp19 avatar Aug 05 '22 18:08 jcp19