diff options
Diffstat (limited to 'tests/run/t8611a.scala')
-rw-r--r-- | tests/run/t8611a.scala | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/run/t8611a.scala b/tests/run/t8611a.scala new file mode 100644 index 000000000..4a0d6fb57 --- /dev/null +++ b/tests/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 dotty.runtime.LegacyApp { + val scrut: O.LK = O.B + scrut match { + case O.A => ??? + case O.B => // spurious unreachable + } +} |