unused_argument.gd 347 B

12345678910111213
  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. # This shouldn't emit a warning since the unused argument is prefixed with an underscore.
  5. func function_with_ignored_unused_argument(p_arg1, _p_arg2):
  6. print(p_arg1)
  7. func test():
  8. pass