Core: Fix Object::has_method() for script static methods
This commit is contained in:
parent
bfd78bb917
commit
ed0b3c08e1
9 changed files with 40 additions and 1 deletions
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue