You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-25 15:37:42 +00:00
use correct error for unused bind match, suppress with underscore
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
# https://github.com/godotengine/godot/pull/61666
|
||||
|
||||
func test():
|
||||
var dict := {"key": "value"}
|
||||
match dict:
|
||||
{"key": var value}:
|
||||
print(value) # used, no warning
|
||||
match dict:
|
||||
{"key": var value}:
|
||||
pass # unused, warning
|
||||
match dict:
|
||||
{"key": var _value}:
|
||||
pass # unused, suppressed warning from underscore
|
||||
Reference in New Issue
Block a user