diff options
author | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2015-04-09 17:39:12 +0200 |
---|---|---|
committer | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2015-04-09 17:39:12 +0200 |
commit | f63589838344e91f84621162d9e0a4cc2c532949 (patch) | |
tree | 33431f7cbca4509b306d4c04e44c44591c2f9b0b /tests/pos/List1.scala | |
parent | d7c44086cc34eee7991753fc2ea284bdefed9670 (diff) | |
download | dotty-f63589838344e91f84621162d9e0a4cc2c532949.tar.gz dotty-f63589838344e91f84621162d9e0a4cc2c532949.tar.bz2 dotty-f63589838344e91f84621162d9e0a4cc2c532949.zip |
Add spaces around + in tests.
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 = { |