summaryrefslogtreecommitdiff
path: root/test/files/neg/bug414.scala
blob: 3dff7f7b36d602934e30e55665b1f808483fa36c (plain) (blame)
1
2
3
4
5
6
7
8
9
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 _ =>
        };

};