Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

PythonAddDeclarationsPass ignores ParameterDeclarations and does not resolve symbols to them #1978

Closed
KuechA opened this issue Jan 24, 2025 · 0 comments · Fixed by #1982
Closed
Labels
bug Something isn't working python

Comments

@KuechA
Copy link
Contributor

KuechA commented Jan 24, 2025

In the following example

def foo(a):
    a = bar(a)
    return a

all three References in the function body have the refersTo set to a VariableDeclaration but they ignore that the symbol is already defined by the ParameterDeclaration.

In contrast., the References refer to the ParameterDeclaration in the case of

def foo(a):
    b = bar(a)
    return a
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working python
Projects
None yet
1 participant