summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/tests/scripts/parser/features/nested_function_calls.gd
diff options
context:
space:
mode:
authorDanil Alexeev <danil@alexeev.xyz>2023-09-21 12:42:55 +0300
committerDanil Alexeev <danil@alexeev.xyz>2023-09-21 13:36:39 +0300
commite8696f9961e4d317f56ceb9626792529966f0e91 (patch)
treea6fe0815ae249234ad93beeb6ee0b39fd9383134 /modules/gdscript/tests/scripts/parser/features/nested_function_calls.gd
parent59139df16e7a10c3b9176f697d23b557af46601e (diff)
downloadredot-engine-e8696f9961e4d317f56ceb9626792529966f0e91.tar.gz
GDScript: Improve call analysis
* Add missing `UNSAFE_CALL_ARGUMENT` warning. * Fix `Object` constructor. * Display an error for non-existent static methods.
Diffstat (limited to 'modules/gdscript/tests/scripts/parser/features/nested_function_calls.gd')
-rw-r--r--modules/gdscript/tests/scripts/parser/features/nested_function_calls.gd1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gdscript/tests/scripts/parser/features/nested_function_calls.gd b/modules/gdscript/tests/scripts/parser/features/nested_function_calls.gd
index 59cdc7d6c2..31de73813f 100644
--- a/modules/gdscript/tests/scripts/parser/features/nested_function_calls.gd
+++ b/modules/gdscript/tests/scripts/parser/features/nested_function_calls.gd
@@ -2,4 +2,5 @@ func foo(x):
return x + 1
func test():
+ @warning_ignore("unsafe_call_argument")
print(foo(foo(foo(foo(foo(foo(foo(foo(foo(foo(foo(foo(foo(foo(foo(foo(foo(foo(foo(foo(foo(foo(foo(foo(0)))))))))))))))))))))))))