diff options
Diffstat (limited to 'test/files/pos/List1.scala')
-rw-r--r-- | test/files/pos/List1.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/files/pos/List1.scala b/test/files/pos/List1.scala index 6c54f109ce..f0fce9501f 100644 --- a/test/files/pos/List1.scala +++ b/test/files/pos/List1.scala @@ -9,8 +9,8 @@ object lists { def Nil[a] = new List[a] { def isEmpty: Boolean = true; - def head = error[a]("head of Nil"); - def tail = error[List[a]]("tail of Nil"); + def head = error("head of Nil"); + def tail = error("tail of Nil"); } def Cons[a](x: a, xs: List[a]): List[a] = new List[a] { |