aboutsummaryrefslogtreecommitdiff
path: root/tests/pending/run/t3097.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pending/run/t3097.scala')
-rw-r--r--tests/pending/run/t3097.scala18
1 files changed, 0 insertions, 18 deletions
diff --git a/tests/pending/run/t3097.scala b/tests/pending/run/t3097.scala
deleted file mode 100644
index c5bac528b..000000000
--- a/tests/pending/run/t3097.scala
+++ /dev/null
@@ -1,18 +0,0 @@
-sealed trait ISimpleValue
-
-sealed trait IListValue extends ISimpleValue
-sealed trait IAtomicValue[O] extends ISimpleValue
-
-sealed trait IAbstractDoubleValue[O] extends IAtomicValue[O]
-sealed trait IDoubleValue extends IAbstractDoubleValue[Double]
-
-case class ListValue(val items: List[IAtomicValue[_]]) extends IListValue
-class DoubleValue(val data: Double) extends IDoubleValue
-
-object Test extends dotty.runtime.LegacyApp {
- // match is exhaustive
- (new DoubleValue(1): ISimpleValue) match {
- case m: IListValue => println("list")
- case a: IAtomicValue[_] => println("atomic")
- }
-}