godot icon indicating copy to clipboard operation
godot copied to clipboard

Calling static function from within a class generates a warning

Open adamscoble opened this issue 2 years ago • 0 comments

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

adamscoble avatar Nov 28 '22 06:11 adamscoble