☰
Debian Codegraph
@
4.6.3+ds-2
/
/
modules
/
gdscript
/
tests
/
scripts
/
parser
/
warnings
/
match_default_not_at_end.gd
☽
☼
modules/gdscript/tests/scripts/parser/warnings/match_default_not_at_end.gd
code
plain
raw
Expat
2014-present, Godot Engine contributors; 2007-2014, Juan Linietsky, Ariel Manzur
debian/copyright
1
func test():
2
var i = 25
3
# The default branch (`_`) should be at the end of the `match` statement.
4
# Otherwise, a warning will be emitted
5
match i:
6
_:
7
print("default")
8
25:
9
print("is 25")