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

GDScript: Fix calling static func from non-static is allowed #77151

Merged

Conversation

dalexeev
Copy link
Member

Fix the regression from #76264 reported in godotengine/godot-proposals#6897 (comment).

Copy link
Contributor

@anvilfolk anvilfolk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally looks good to me! It seems to add a missing check for whether the function exists within a static context or not, instead of, I assume, using the static context of the previous function. Also contains the code to return to the previous context :)

Copy link
Member

@adamscott adamscott left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with @anvilfolk. It's ready to merge.

@akien-mga akien-mga merged commit eb86dab into godotengine:master Jun 13, 2023
@akien-mga
Copy link
Member

Thanks!

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.

4 participants