You've already forked godot
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:
@@ -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())
|
||||
@@ -0,0 +1,3 @@
|
||||
GDTEST_OK
|
||||
Test true
|
||||
Test true
|
||||
Reference in New Issue
Block a user