aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDmitry Petrashko <dark@d-d.me>2017-04-03 10:52:11 +0200
committerGitHub <noreply@github.com>2017-04-03 10:52:11 +0200
commit23709efcd3dc26459bcdd810c8b0eaa90f40f32d (patch)
tree0bf4da308abbeb6fdeed21e2adbaf87e4a51fee2 /tests
parent054a4f98bba5ac06f5cf5dd98403db7e2905f080 (diff)
parentd0e52c89119912c6e67fa3f62b326c01843eef37 (diff)
downloaddotty-23709efcd3dc26459bcdd810c8b0eaa90f40f32d.tar.gz
dotty-23709efcd3dc26459bcdd810c8b0eaa90f40f32d.tar.bz2
dotty-23709efcd3dc26459bcdd810c8b0eaa90f40f32d.zip
Merge pull request #2161 from dotty-staging/si4400
Test that SI-4400 stays fixed.
Diffstat (limited to 'tests')
-rw-r--r--tests/run/t4400.scala35
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)
+ }
+
+}
+