diff options
author | Felix Mulder <felix.mulder@gmail.com> | 2016-05-27 15:57:06 +0200 |
---|---|---|
committer | Felix Mulder <felix.mulder@gmail.com> | 2016-05-27 16:41:38 +0200 |
commit | 0d604a4c9b21eec23cda0c82ab769c48d3d0c47a (patch) | |
tree | 8557c353de260fe1e770728572fe2b590da144e8 /tests/pos/t9795.scala | |
parent | a2e49e24ec9e39eabfd7ec402c17e72639eb8bbd (diff) | |
download | dotty-0d604a4c9b21eec23cda0c82ab769c48d3d0c47a.tar.gz dotty-0d604a4c9b21eec23cda0c82ab769c48d3d0c47a.tar.bz2 dotty-0d604a4c9b21eec23cda0c82ab769c48d3d0c47a.zip |
Add test for SI-9795
Diffstat (limited to 'tests/pos/t9795.scala')
-rw-r--r-- | tests/pos/t9795.scala | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/pos/t9795.scala b/tests/pos/t9795.scala new file mode 100644 index 000000000..1bb23840e --- /dev/null +++ b/tests/pos/t9795.scala @@ -0,0 +1,7 @@ +case class A(v: Int) +class B(v: Int) extends A(v) + +object Test { + val a = new B(1) + a match { case A(_) => 1 } +} |