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:
parent
59139df16e
commit
e8696f9961
25 changed files with 184 additions and 46 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue