godot/modules/gdscript/tests/scripts/analyzer/errors/match.gd

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
221 B
GDScript3
Raw Permalink Normal View History

func test():
var dict = { a = 1 }
var a = 1
match 2:
dict["a"]: # TODO: Fix positional information (parser bug).
print("not allowed")
a + 2:
print("not allowed")
_ when b == 0:
print("b does not exist")