diff options
author | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2015-04-09 16:58:43 +0200 |
---|---|---|
committer | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2015-04-09 16:58:43 +0200 |
commit | 4d1c9e2212d8d462ad8664904491c378766a65fa (patch) | |
tree | f43b9c51d669a92be7cab4e5d70b10b3c90b7085 /tests/neg | |
parent | afa630a78b4f2cd9bd799b5a0199b99548f18aaa (diff) | |
download | dotty-4d1c9e2212d8d462ad8664904491c378766a65fa.tar.gz dotty-4d1c9e2212d8d462ad8664904491c378766a65fa.tar.bz2 dotty-4d1c9e2212d8d462ad8664904491c378766a65fa.zip |
Remove trailing spaces in Dotty tests.
Diffstat (limited to 'tests/neg')
-rw-r--r-- | tests/neg/assignments.scala | 6 | ||||
-rw-r--r-- | tests/neg/patternUnsoundness.scala | 8 | ||||
-rw-r--r-- | tests/neg/tailcall/t6574.scala | 2 | ||||
-rw-r--r-- | tests/neg/typedapply.scala | 10 |
4 files changed, 13 insertions, 13 deletions
diff --git a/tests/neg/assignments.scala b/tests/neg/assignments.scala index 2f7db275a..951f9eca5 100644 --- a/tests/neg/assignments.scala +++ b/tests/neg/assignments.scala @@ -4,7 +4,7 @@ object assignments { var i = 0 a(i) = a(i) * 2 a(i+1) += 1 - + class C { var myX = 0 def x = myX @@ -12,10 +12,10 @@ object assignments { x = x + 1 x *= 2 - + x_= = 2 // should give missing arguments + reassignment to val } - + var c = new C import c._ // should give: prefix is not stable x = x + 1 diff --git a/tests/neg/patternUnsoundness.scala b/tests/neg/patternUnsoundness.scala index c13c13072..4620f6c7d 100644 --- a/tests/neg/patternUnsoundness.scala +++ b/tests/neg/patternUnsoundness.scala @@ -1,14 +1,14 @@ object patternUnsoundness extends App { - + class C[+T] - + case class D[S](_s: S) extends C[S] { var s: S = _s } - + val x = new D[String]("abc") val y: C[Object] = x - + y match { case d @ D(x) => d.s = new Integer(1) } diff --git a/tests/neg/tailcall/t6574.scala b/tests/neg/tailcall/t6574.scala index 59f3108ad..e81c8cd07 100644 --- a/tests/neg/tailcall/t6574.scala +++ b/tests/neg/tailcall/t6574.scala @@ -4,7 +4,7 @@ class Bad[X, Y](val v: Int) extends AnyVal { println("tail") } - @annotation.tailrec final def differentTypeArgs : Unit = { + @annotation.tailrec final def differentTypeArgs : Unit = { {(); new Bad[String, Unit](0)}.differentTypeArgs } } diff --git a/tests/neg/typedapply.scala b/tests/neg/typedapply.scala index c059418ac..b80281c9f 100644 --- a/tests/neg/typedapply.scala +++ b/tests/neg/typedapply.scala @@ -5,13 +5,13 @@ object typedapply { foo[Int](1, "abc") foo[Int, String, String](1, "abc") - + def bar(x: Int) = x - + bar[Int](1) - + def baz[X >: Y, Y <: String](x: X, y: Y) = (x, y) - + baz[Int, String](1, "abc") - + } |