use correct error for unused bind match, suppress with underscore
This commit is contained in:
parent
c0bf18e923
commit
3d61246bc4
3 changed files with 21 additions and 2 deletions
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue