aboutsummaryrefslogtreecommitdiff
path: root/tests/pending
diff options
context:
space:
mode:
authorDmitry Petrashko <dmitry.petrashko@gmail.com>2015-04-09 16:58:43 +0200
committerDmitry Petrashko <dmitry.petrashko@gmail.com>2015-04-09 16:58:43 +0200
commit4d1c9e2212d8d462ad8664904491c378766a65fa (patch)
treef43b9c51d669a92be7cab4e5d70b10b3c90b7085 /tests/pending
parentafa630a78b4f2cd9bd799b5a0199b99548f18aaa (diff)
downloaddotty-4d1c9e2212d8d462ad8664904491c378766a65fa.tar.gz
dotty-4d1c9e2212d8d462ad8664904491c378766a65fa.tar.bz2
dotty-4d1c9e2212d8d462ad8664904491c378766a65fa.zip
Remove trailing spaces in Dotty tests.
Diffstat (limited to 'tests/pending')
-rw-r--r--tests/pending/pos/t6260a.scala2
-rw-r--r--tests/pending/pos/t7983.scala16
-rw-r--r--tests/pending/pos/t7987/Test_2.scala14
-rw-r--r--tests/pending/pos/t8023.scala2
-rw-r--r--tests/pending/pos/t8111.scala8
-rw-r--r--tests/pending/pos/t8301b.scala10
-rw-r--r--tests/pending/pos/t8367.scala4
7 files changed, 28 insertions, 28 deletions
diff --git a/tests/pending/pos/t6260a.scala b/tests/pending/pos/t6260a.scala
index 194294e98..21b2fd43c 100644
--- a/tests/pending/pos/t6260a.scala
+++ b/tests/pending/pos/t6260a.scala
@@ -1,7 +1,7 @@
final class Option[+A](val value: A) extends AnyVal
// Was: sandbox/test.scala:21: error: bridge generated for member method f: ()Option[A] in class Bar
-// which overrides method f: ()Option[A] in class Foo"
+// which overrides method f: ()Option[A] in class Foo"
abstract class Foo[A] { def f(): Option[A] }
class Bar[A] extends Foo[A] { def f(): Option[A] = ??? }
diff --git a/tests/pending/pos/t7983.scala b/tests/pending/pos/t7983.scala
index bae9f3333..fbeb7d3c5 100644
--- a/tests/pending/pos/t7983.scala
+++ b/tests/pending/pos/t7983.scala
@@ -1,15 +1,15 @@
package foo.bar.baz // the package nesting level material to this bug
-
+
class DivergenceTest {
-
+
trait ColumnBase[T]
-
+
trait ShapeLevel
trait Flat extends ShapeLevel
trait Lower extends Flat
-
+
class Shape2[Level <: ShapeLevel, -M, U]
-
+
implicit final def columnBaseShape[Level >: Flat <: ShapeLevel, T, C <: ColumnBase[_]]
(implicit ev: C <:< ColumnBase[T]
): Shape2[Level, C, T] = ???
@@ -19,12 +19,12 @@ class DivergenceTest {
(implicit u1: Shape2[_ <: Level, M1, U1],
u2: Shape2[_ <: Level, M2, U2]
): Shape2[Level, (M1,M2), (U1,U2)] = ???
-
+
def foo: Unit = {
class Coffees extends ColumnBase[Int]
-
+
def map1[F, T](f: F)(implicit shape: Shape2[_ <: Flat, F, T]) = ???
-
+
map1(((1, null: Coffees), 1))
map1(((null: Coffees, 1), 1)) // fails with implicit divergence error in 2.11.0-M6, works under 2.10.3
}
diff --git a/tests/pending/pos/t7987/Test_2.scala b/tests/pending/pos/t7987/Test_2.scala
index 5896fdb51..aaa21ec4c 100644
--- a/tests/pending/pos/t7987/Test_2.scala
+++ b/tests/pending/pos/t7987/Test_2.scala
@@ -1,12 +1,12 @@
-class C[T] {
- def foo = 0
-}
+class C[T] {
+ def foo = 0
+}
object Test {
- implicit def AnyToC[T](a: Any): C[T] = new C[T]
+ implicit def AnyToC[T](a: Any): C[T] = new C[T]
// was: "macro not expanded"
- Macro {
- "".foo
- ()
+ Macro {
+ "".foo
+ ()
}
}
diff --git a/tests/pending/pos/t8023.scala b/tests/pending/pos/t8023.scala
index 86824084e..502b5c55d 100644
--- a/tests/pending/pos/t8023.scala
+++ b/tests/pending/pos/t8023.scala
@@ -4,7 +4,7 @@ import language._
object Test {
def foo = (null: Any) match {
case a: A[k] =>
- // error: kinds of the type arguments (k) do not conform to the
+ // error: kinds of the type arguments (k) do not conform to the
// expected kinds of the type parameters (type K) in class B.
new B[k]()
}
diff --git a/tests/pending/pos/t8111.scala b/tests/pending/pos/t8111.scala
index 7ec002c9b..3f0e766ce 100644
--- a/tests/pending/pos/t8111.scala
+++ b/tests/pending/pos/t8111.scala
@@ -7,16 +7,16 @@ trait T {
foo((u: Unit) => ma)
foo(0, (u: Any) => ma) apply ()
- // crash due to side effects on the onwer of the symbol in the
+ // crash due to side effects on the onwer of the symbol in the
// qualifier or arguments of the application during an abandoned
// names/defaults transform. The code type checkes because of
// autp-tupling which promotes and empty parmater list to `(): Unit`
foo((u: Any) => ma)()
-
+
{{(u: Any) => ma}; this}.foo(0)()
-
+
foo({def foo = ma; 0})()
-
+
{def foo = ma; this}.foo(0)()
}
diff --git a/tests/pending/pos/t8301b.scala b/tests/pending/pos/t8301b.scala
index 5641547c1..4dd39139d 100644
--- a/tests/pending/pos/t8301b.scala
+++ b/tests/pending/pos/t8301b.scala
@@ -2,18 +2,18 @@
trait Universe {
type Name >: Null <: AnyRef with NameApi
trait NameApi
-
+
type TermName >: Null <: TermNameApi with Name
trait TermNameApi extends NameApi
}
-
+
object Test extends App {
val u: Universe = ???
import u._
-
+
val ScalaName: TermName = ???
locally {
-
+
??? match {
case Test.ScalaName => ???
}
@@ -25,7 +25,7 @@ object Test extends App {
import ScalaName._
// both the pattern and import led to
- // stable identifier required, but SN found. Note that value SN
+ // stable identifier required, but SN found. Note that value SN
// is not stable because its type, Test.u.TermName, is volatile.
val SN = ScalaName
??? match {
diff --git a/tests/pending/pos/t8367.scala b/tests/pending/pos/t8367.scala
index 9ac2ce7c2..f0c329211 100644
--- a/tests/pending/pos/t8367.scala
+++ b/tests/pending/pos/t8367.scala
@@ -2,10 +2,10 @@ package java.lang
// SI-8367 shows something is wrong with primaryConstructor and it was made worse with the fix for SI-8192
// perhaps primaryConstructor should not return NoSymbol when isJavaDefined
-// or, perhaps isJavaDefined should be refined (the package definition above is pretty sneaky)
+// or, perhaps isJavaDefined should be refined (the package definition above is pretty sneaky)
// also, why does this only happen for a (scala-defined!) class with this special name?
// (there are a couple of others: CloneNotSupportedException,InterruptedException)
class Throwable
-// class CloneNotSupportedException
+// class CloneNotSupportedException
// class InterruptedException