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/pending/pos | |
parent | d7c44086cc34eee7991753fc2ea284bdefed9670 (diff) | |
download | dotty-f63589838344e91f84621162d9e0a4cc2c532949.tar.gz dotty-f63589838344e91f84621162d9e0a4cc2c532949.tar.bz2 dotty-f63589838344e91f84621162d9e0a4cc2c532949.zip |
Add spaces around + in tests.
Diffstat (limited to 'tests/pending/pos')
-rw-r--r-- | tests/pending/pos/depmet_implicit_oopsla_session.scala | 2 | ||||
-rw-r--r-- | tests/pending/pos/depmet_implicit_oopsla_session_2.scala | 2 | ||||
-rw-r--r-- | tests/pending/pos/depmet_implicit_oopsla_session_simpler.scala | 2 | ||||
-rw-r--r-- | tests/pending/pos/existentials-harmful.scala | 4 | ||||
-rw-r--r-- | tests/pending/pos/t1756.scala | 14 | ||||
-rw-r--r-- | tests/pending/pos/t796.scala | 2 | ||||
-rw-r--r-- | tests/pending/pos/unapplySeq.scala | 4 |
7 files changed, 15 insertions, 15 deletions
diff --git a/tests/pending/pos/depmet_implicit_oopsla_session.scala b/tests/pending/pos/depmet_implicit_oopsla_session.scala index aa8478056..a9c8e56ce 100644 --- a/tests/pending/pos/depmet_implicit_oopsla_session.scala +++ b/tests/pending/pos/depmet_implicit_oopsla_session.scala @@ -34,7 +34,7 @@ object Sessions { def addServer = In{x: Int => In{y: Int => System.out.println("Thinking") - Out(x+y, + Out(x + y, Stop())}} def addClient = diff --git a/tests/pending/pos/depmet_implicit_oopsla_session_2.scala b/tests/pending/pos/depmet_implicit_oopsla_session_2.scala index 4951c10a1..29a76d5cf 100644 --- a/tests/pending/pos/depmet_implicit_oopsla_session_2.scala +++ b/tests/pending/pos/depmet_implicit_oopsla_session_2.scala @@ -54,7 +54,7 @@ object Sessions { def addServer = In{x: Int => In{y: Int => System.out.println("Thinking") - Out(x+y, + Out(x + y, Stop())}} def addClient = diff --git a/tests/pending/pos/depmet_implicit_oopsla_session_simpler.scala b/tests/pending/pos/depmet_implicit_oopsla_session_simpler.scala index 04b8f94e6..fad5eba40 100644 --- a/tests/pending/pos/depmet_implicit_oopsla_session_simpler.scala +++ b/tests/pending/pos/depmet_implicit_oopsla_session_simpler.scala @@ -31,7 +31,7 @@ object Sessions { def addServer = In{x: Int => In{y: Int => System.out.println("Thinking") - Out(x+y, + Out(x + y, Stop())}} def addClient = diff --git a/tests/pending/pos/existentials-harmful.scala b/tests/pending/pos/existentials-harmful.scala index 8722852e8..91dbd4dfd 100644 --- a/tests/pending/pos/existentials-harmful.scala +++ b/tests/pending/pos/existentials-harmful.scala @@ -17,7 +17,7 @@ object ExistentialsConsideredHarmful { // 1. def carry[A <: Animal](box: TransportBox[A]): Unit = { - println(box.animal.name+" got carried away") + println(box.animal.name +" got carried away") } val aBox = @@ -37,7 +37,7 @@ object ExistentialsConsideredHarmful { abstract class BoxCarrier[R <: Animal](box: TransportBox[R]) { def speed: Int - def talkToAnimal: Unit = println("The carrier says hello to"+box.animal.name) + def talkToAnimal: Unit = println("The carrier says hello to" + box.animal.name) } // 3. diff --git a/tests/pending/pos/t1756.scala b/tests/pending/pos/t1756.scala index 1d067c3b0..58f56ccb9 100644 --- a/tests/pending/pos/t1756.scala +++ b/tests/pending/pos/t1756.scala @@ -30,7 +30,7 @@ class A extends Ring[A] { } class Poly[C <: Ring[C]](val c: C) extends Ring[Poly[C]] { - def +(that: Poly[C]) = new Poly(this.c+that.c) + def +(that: Poly[C]) = new Poly(this.c + that.c) def *(that: Poly[C]) = new Poly(this.c*that.c) } @@ -41,14 +41,14 @@ object Test extends App { val a = new A val x = new Poly(new A) - println(x+a) // works - println(a+x) // works + println(x + a) // works + println(a + x) // works val y = new Poly(new Poly(new A)) - println(x+y*x) // works - println(x*y+x) // works - println(y*x+x) // works + println(x + y*x) // works + println(x*y + x) // works + println(y*x + x) // works - println(x+x*y) // failed before + println(x + x*y) // failed before } diff --git a/tests/pending/pos/t796.scala b/tests/pending/pos/t796.scala index 066625179..b1463ed92 100644 --- a/tests/pending/pos/t796.scala +++ b/tests/pending/pos/t796.scala @@ -16,7 +16,7 @@ object Test extends App { } def test(x: Int) = x match { - case Twice(y) => "x is two times "+y + case Twice(y) => "x is two times " + y case _ => "x is odd" } diff --git a/tests/pending/pos/unapplySeq.scala b/tests/pending/pos/unapplySeq.scala index 6d13cc8b5..e642fd8d6 100644 --- a/tests/pending/pos/unapplySeq.scala +++ b/tests/pending/pos/unapplySeq.scala @@ -9,12 +9,12 @@ object FooSeq { def main(args:Array[String]) = { val b = new Bar b match { - case FooSeq(s:Int,_,n:String) => Console.println("size "+s+" name "+n) + case FooSeq(s:Int,_,n:String) => Console.println("size " + s +" name "+ n) } b.size = 54 b.name = List("large","L") b match { - case FooSeq(s:Int,_,n:String) => Console.println("size "+s+" name "+n) + case FooSeq(s:Int,_,n:String) => Console.println("size " + s +" name "+ n) } } } |