godot
godot copied to clipboard
Calling static function from within a class generates a warning
Godot version
4.0.beta6
System information
Windows 10
Issue description
Hi all,
Calling a static function from within the class that owns it generates a warning. I would expect that calling the function from within the class shouldn't generate the warning (particularly if that class doesn't have a class name).
Thanks!
Steps to reproduce
Add the below to a script and note the Error (warning) it generates:
func _ready() -> void:
a_static_func()
static func a_static_func() -> void:
pass
Minimal reproduction project
N/A