summaryrefslogtreecommitdiff
path: root/modules/gdscript/tests/scripts/parser/warnings/unused_argument.gd
blob: e6e24dc6f2d68218e505d29a0a3b813f128d3a83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# 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