aboutsummaryrefslogtreecommitdiff
path: root/tests/patmat/t7631.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/patmat/t7631.scala')
-rw-r--r--tests/patmat/t7631.scala11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/patmat/t7631.scala b/tests/patmat/t7631.scala
new file mode 100644
index 000000000..13e74183f
--- /dev/null
+++ b/tests/patmat/t7631.scala
@@ -0,0 +1,11 @@
+sealed trait Test
+case class TestA() extends Test
+case class TestB() extends Test
+
+object Tester {
+ val input : Test = TestA()
+ val num = 3
+ val x = input match {
+ case TestA() if num == 3 => 2
+ }
+} \ No newline at end of file