Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Fix for incorrect line number warnings when redeclaring variables #43082

Closed
wants to merge 1 commit into from

Conversation

mateosss
Copy link
Contributor

@mateosss mateosss commented Oct 25, 2020

Solves #42884 as #43019 did, but for master.
Does the same as the previous PR did for 3.2, but also solves it for function parameters and constants.

Before

func f(
    x,
    x
): <- Error points here
    pass

func f(x):
    const x = 1 
    pass <- Error points here

Now

func f(
    x,
    x <- Error points here
): 
    pass

func f(x):
    const x = 1 <- Error points here
    pass

Bugsquad edit:

@akien-mga
Copy link
Member

Seems like this was fixed differently in the master branch, as the original issue is solved. Thanks for the contribution nevertheless!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wrong parse error line number (GDScript)
3 participants