Skip to content

Commit 7c3ea13

Browse files
committed
Add potential Godot bug test case regarding multiline arr/dict patterns
1 parent 464c9c6 commit 7c3ea13

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
func foo(x):
2+
match x:
3+
[1, 2]: # ok
4+
pass
5+
{"a": 1}: # ok
6+
pass
7+
[ # Parse Error: Expected expression for match pattern.
8+
2,
9+
3
10+
]:
11+
pass
12+
{ # Parse Error: Expected expression as key for dictionary pattern.
13+
"a": 1
14+
}:
15+
pass

0 commit comments

Comments
 (0)