godot/modules/gdscript/tests/scripts/parser/warnings/unused_argument.gd
Hugo Locurcio c0083c0f90
Add dozens of new integration tests to the GDScript test suite
This also ignores `.out` files in the file format static checks.
2021-09-14 18:42:08 +02:00

13 lines
347 B
GDScript

# This should emit a warning since the unused argument is not prefixed with an underscore.
func function_with_unused_argument(p_arg1, p_arg2):
print(p_arg1)
# This shouldn't emit a warning since the unused argument is prefixed with an underscore.
func function_with_ignored_unused_argument(p_arg1, _p_arg2):
print(p_arg1)
func test():
pass