diff options
Diffstat (limited to 'tests/pos/List1.scala')
-rw-r--r-- | tests/pos/List1.scala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/pos/List1.scala b/tests/pos/List1.scala index 30ebf5e1e..733ef376d 100644 --- a/tests/pos/List1.scala +++ b/tests/pos/List1.scala @@ -21,7 +21,7 @@ object lists { def foo = { val intnil = Nil[Int]; - val intlist = intnil.prepend(1).prepend(1+1); + val intlist = intnil.prepend(1).prepend(1 + 1); val x: Int = intlist.head; val strnil = Nil[String]; val strlist = strnil.prepend("A").prepend("AA"); @@ -33,8 +33,8 @@ object lists { 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); - def tail: List[Int] = Nil[Int].prepend(1).prepend(1+1); + def tail0: List[Int] = foo.prepend(1).prepend(1 + 1); + def tail: List[Int] = Nil[Int].prepend(1).prepend(1 + 1); } def foo2 = { |