summaryrefslogtreecommitdiff
path: root/test/files/neg/t414.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/t414.scala')
-rw-r--r--test/files/neg/t414.scala10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/files/neg/t414.scala b/test/files/neg/t414.scala
new file mode 100644
index 0000000000..2bc83eedcb
--- /dev/null
+++ b/test/files/neg/t414.scala
@@ -0,0 +1,10 @@
+case class Empty[a]() extends IntMap[a];
+case class Node[a](left: IntMap[a], keyVal: Pair[Int, a], right: IntMap[a]) extends IntMap[a];
+abstract class IntMap[a] {
+ def lookup(key: Int): a = this match {
+ case Empty =>
+ error("clef inexistante")
+ case _ =>
+ };
+
+};