Skip to content

Commit 756bce7

Browse files
committed
Add support for annotations in match patterns
Close #40
1 parent b791b4f commit 756bce7

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

tests/expected/match_case.gd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@ func foo():
1010
_:
1111
pass
1212
match 0:
13+
@warning_ignore("unreachable_pattern")
1314
0 when true:
1415
print("true")

tests/input/match_case.gd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@ func foo():
1010
_ :
1111
pass
1212
match 0:
13+
@warning_ignore("unreachable_pattern")
1314
0 when true:
1415
print("true")

0 commit comments

Comments
 (0)