diff options
author | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2017-03-31 14:45:15 +0200 |
---|---|---|
committer | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2017-03-31 14:45:15 +0200 |
commit | b5eaee949221f9edcab6e917a8cf3bf68d00f664 (patch) | |
tree | 75748b97fd37671fa7a939e285d7d2e20013357f /tests | |
parent | 03f13046f0a6cde36cba2a9649aad8996ba7550a (diff) | |
download | dotty-b5eaee949221f9edcab6e917a8cf3bf68d00f664.tar.gz dotty-b5eaee949221f9edcab6e917a8cf3bf68d00f664.tar.bz2 dotty-b5eaee949221f9edcab6e917a8cf3bf68d00f664.zip |
Test that SI-4400 stays fixed.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/run/t4400.scala | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/tests/run/t4400.scala b/tests/run/t4400.scala new file mode 100644 index 000000000..04ae6722e --- /dev/null +++ b/tests/run/t4400.scala @@ -0,0 +1,35 @@ +final class Outer { + + + + sealed trait Inner + + + + final case class Inner1(foo: Int) extends Inner + + + + val inner: Outer#Inner = Inner1(0) + + + + def bar = inner match { + + case Inner1(i) => i + + } + +} + + + +object Test { + + def main(args: Array[String]): Unit = { + val s = (new Outer).bar + assert(s == 0) + } + +} + |