GDScript: Fix calling static func from non-static is allowed
This commit is contained in:
parent
a8453cb333
commit
3bf72be625
3 changed files with 14 additions and 0 deletions
|
|
@ -0,0 +1,8 @@
|
|||
static func static_func():
|
||||
non_static_func()
|
||||
|
||||
func non_static_func():
|
||||
pass
|
||||
|
||||
func test():
|
||||
pass
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
GDTEST_ANALYZER_ERROR
|
||||
Cannot call non-static function "non_static_func()" from static function "static_func()".
|
||||
Loading…
Add table
Add a link
Reference in a new issue