diff options
Diffstat (limited to 'test/pos')
-rw-r--r-- | test/pos/List1.scala | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/pos/List1.scala b/test/pos/List1.scala index a6d4e78f8c..fcc506bccc 100644 --- a/test/pos/List1.scala +++ b/test/pos/List1.scala @@ -8,13 +8,13 @@ module lists { } def Nil[a] = new List[a] { - def isEmpty: Boolean = True; + def isEmpty: Boolean = true; def head = error[a]("head of Nil"); def tail = error[List[a]]("tail of Nil"); } def Cons[a](x: a, xs: List[a]): List[a] = new List[a] { - def isEmpty = Boolean.False; + def isEmpty = false; def head = x; def tail = xs; } @@ -30,7 +30,7 @@ module lists { } class IntList() extends List[Int] { - def isEmpty: Boolean = False; + def isEmpty: Boolean = false; def head: Int = 1; def foo: List[Int] { def isEmpty: Boolean; def head: Int; def tail: List[Int] } = Nil[Int]; def tail0: List[Int] = foo.prepend(1).prepend(1+1); @@ -42,4 +42,4 @@ module lists { val il2 = il1.prepend(1).prepend(2); () } -}
\ No newline at end of file +} |