From 1bbbb4c44fc0ea2fd36d18b579474efb7641fd09 Mon Sep 17 00:00:00 2001 From: michelou Date: Tue, 12 Aug 2003 14:00:32 +0000 Subject: replaced by test file exceptions.scala --- test/files/run/mics1.scala | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 test/files/run/mics1.scala (limited to 'test/files/run') 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()); - } - } - -} - -- cgit v1.2.3