mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
GDScript: Fix calling static func from non-static is allowed
This commit is contained in:
@@ -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()".
|
||||
Reference in New Issue
Block a user