SOMns icon indicating copy to clipboard operation
SOMns copied to clipboard

Name resolution in getSetterSend seems wrong

Open smarr opened this issue 6 years ago • 0 comments

getSetterSend checks different kind of names depth first instead of breadth first.

This seems wrong, because an local variable in a more inner scope is not found before some argument in an outer scope:

See to do introduced in: https://github.com/smarr/SOMns/pull/233/files#diff-6753c8d394a8952d61bc05fe26679bfaR585

Think this is a good first issue to get started with the parser and related code.

First step to work on this should be to produce a test case.

smarr avatar Mar 19 '18 23:03 smarr