Skip to content

Commit

Permalink
[test] Add more tests for match errors on variants
Browse files Browse the repository at this point in the history
  • Loading branch information
titzer committed Jan 11, 2024
1 parent 30e2732 commit 2e49a4b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/variants/seman/match_err05.v3
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
//@seman = MatchError @ 9:17
type X {
case A(y: int);
case B(y: int);
}
def foo(x: Y) -> int {
match (x) {
A(y) => return y;
C(y) => return y;
}
}

0 comments on commit 2e49a4b

Please sign in to comment.