diff options
Diffstat (limited to 'tests/run/t8611c.scala')
-rw-r--r-- | tests/run/t8611c.scala | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/run/t8611c.scala b/tests/run/t8611c.scala new file mode 100644 index 000000000..325070f4c --- /dev/null +++ b/tests/run/t8611c.scala @@ -0,0 +1,21 @@ +trait K +trait L + +object O { + type LK = K with L +} + +object Test extends dotty.runtime.LegacyApp { + local + + def local = { + val A: O.LK = new K with L + val B: O.LK = new K with L + val scrut: O.LK = A + scrut match { + case B if "".isEmpty => ??? + case A => + case B => ??? + } + } +} |