summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authormichelou <michelou@epfl.ch>2003-08-12 14:00:32 +0000
committermichelou <michelou@epfl.ch>2003-08-12 14:00:32 +0000
commit1bbbb4c44fc0ea2fd36d18b579474efb7641fd09 (patch)
tree177846f8ffc1c663425f72c1cee40f1c5b6659ce /test
parent101992b2d7aa648fb8ad5078c0fc899927dfbb3d (diff)
downloadscala-1bbbb4c44fc0ea2fd36d18b579474efb7641fd09.tar.gz
scala-1bbbb4c44fc0ea2fd36d18b579474efb7641fd09.tar.bz2
scala-1bbbb4c44fc0ea2fd36d18b579474efb7641fd09.zip
replaced by test file exceptions.scala
Diffstat (limited to 'test')
-rw-r--r--test/files/run/mics1.scala25
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());
- }
- }
-
-}
-