Debian Codegraph @

modules/gdscript/tests/scripts/parser/warnings/unused_argument.gd

raw
1 # This should emit a warning since the unused argument is not prefixed with an underscore.
2 func function_with_unused_argument(p_arg1, p_arg2):
3 print(p_arg1)
4
5
6 # This shouldn't emit a warning since the unused argument is prefixed with an underscore.
7 func function_with_ignored_unused_argument(p_arg1, _p_arg2):
8 print(p_arg1)
9
10
11 func test():
12 pass