1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-07 12:30:27 +00:00

Core: Fix Object::has_method() for script static methods

This commit is contained in:
Danil Alexeev
2023-10-04 07:54:03 +03:00
parent bfd78bb917
commit ed0b3c08e1
9 changed files with 40 additions and 1 deletions

View File

@@ -0,0 +1,12 @@
# GH-79521
class_name TestStaticMethodAsCallable
static func static_func() -> String:
return "Test"
func test():
var a: Callable = TestStaticMethodAsCallable.static_func
var b: Callable = static_func
prints(a.call(), a.is_valid())
prints(b.call(), b.is_valid())

View File

@@ -0,0 +1,3 @@
GDTEST_OK
Test true
Test true