You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can confirm that this is still an issue in 4.1.1.
It limits the usefulness of static functions, and I have to use a few ugly workarounds when using child classes that override static functions.
I'm not convinced this is a bug, static functions can't be inherited and there's no reason to assume the static function being called should take into account what the class itself is, this isn't how it works in at least c++ I don't know about other languages
Godot version
3.4.4-stable, 4.0 alpha 11
System information
Windows 10
Issue description
In parent.gd:
In child.gd:
Calling
load("res://child.gd").get_next_number()
returns 1, while it should return 2.Following the calls in a c++ debugger, it seems that when we are inside the parent's
get_next_number()
, all information about child is lost.Steps to reproduce
Run the provided sample project
Minimal reproduction project
test_static_inheritance.zip
The text was updated successfully, but these errors were encountered: