GDScript: Fix calling static func from non-static is allowed

This commit is contained in:
Danil Alexeev
2023-05-17 10:25:03 +03:00
parent a8453cb333
commit 3bf72be625
3 changed files with 14 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
static func static_func():
non_static_func()
func non_static_func():
pass
func test():
pass

View File

@@ -0,0 +1,2 @@
GDTEST_ANALYZER_ERROR
Cannot call non-static function "non_static_func()" from static function "static_func()".