diff options
-rw-r--r-- | test/files/run/mics1.scala | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/test/files/run/mics1.scala b/test/files/run/mics1.scala deleted file mode 100644 index b3673dd5e0..0000000000 --- a/test/files/run/mics1.scala +++ /dev/null @@ -1,25 +0,0 @@ -abstract class IntMap[a] { - def lookup(key: Int): a = match { - case Empty() => error("key " + key + " not found") - case _ => error("ok") - } -} - -case class Empty[a]() extends IntMap[a]; - -object Test { - - def main(args: Array[String]): Unit = { - val key = 2000; - val map: IntMap[String] = new Empty[String]; - - System.out.print("lookup(" + key + ") = "); - try { - System.out.println(map.lookup(key)); - } catch { - case e => System.out.println(e.getMessage()); - } - } - -} - |