Skip to content

Commit ab0a7c3

Browse files
committed
Add call site causing MatchError that Fengyun hinted at
1 parent a1a9cc5 commit ab0a7c3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/patmat/gadt5.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ object Try3 {
6464
case (VN(), VN()) => 1
6565
case (VC(x, xs), VC(y, ys)) => 2
6666
}
67+
//a call-site which would cause a MatchError (maybe that error should be tested)
68+
def bar = foo[TZero | TSucc[_], Int, String](VN(), VC("", VN()))
6769
}
6870
}
6971

0 commit comments

Comments
 (0)