mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
GDScript: Improve call analysis
* Add missing `UNSAFE_CALL_ARGUMENT` warning. * Fix `Object` constructor. * Display an error for non-existent static methods.
This commit is contained in:
@@ -44,6 +44,7 @@ func test():
|
||||
|
||||
@warning_ignore("unsafe_method_access")
|
||||
var path = get_script().get_path().get_base_dir()
|
||||
@warning_ignore("unsafe_call_argument")
|
||||
var other = load(path + "/static_variables_load.gd")
|
||||
|
||||
prints("load.perm:", other.perm)
|
||||
|
||||
Reference in New Issue
Block a user