Skip to content

Commit 0d604a4

Browse files
committed
Add test for SI-9795
1 parent a2e49e2 commit 0d604a4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/pos/t9795.scala

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
case class A(v: Int)
2+
class B(v: Int) extends A(v)
3+
4+
object Test {
5+
val a = new B(1)
6+
a match { case A(_) => 1 }
7+
}

0 commit comments

Comments
 (0)