summaryrefslogtreecommitdiff
path: root/test/files/run/t8611a.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/t8611a.scala')
-rw-r--r--test/files/run/t8611a.scala16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/files/run/t8611a.scala b/test/files/run/t8611a.scala
new file mode 100644
index 0000000000..99304df762
--- /dev/null
+++ b/test/files/run/t8611a.scala
@@ -0,0 +1,16 @@
+trait K
+trait L
+
+object O {
+ type LK = K with L
+ val A: LK = new K with L
+ val B: LK = new K with L
+}
+
+object Test extends App {
+ val scrut: O.LK = O.B
+ scrut match {
+ case O.A => ???
+ case O.B => // spurious unreachable
+ }
+}