forked from sascha/godot
GDScript: Avoid calling non-static methods on native classes
parent
218bef90af
commit
aee7b7363b
@ -0,0 +1,6 @@
|
||||
# https://github.com/godotengine/godot/issues/66675
|
||||
func test():
|
||||
example(Node2D)
|
||||
|
||||
func example(thing):
|
||||
print(thing.has_method('asdf'))
|
||||
@ -0,0 +1,6 @@
|
||||
GDTEST_RUNTIME_ERROR
|
||||
>> SCRIPT ERROR
|
||||
>> on function: example()
|
||||
>> runtime/errors/non_static_method_call_on_native_class.gd
|
||||
>> 6
|
||||
>> Invalid call. Nonexistent function 'has_method' in base 'Node2D'.
|
||||
Loading…
Reference in New Issue