aboutsummaryrefslogtreecommitdiff
path: root/tests/pending/pos
diff options
context:
space:
mode:
authorDmitry Petrashko <dmitry.petrashko@gmail.com>2015-04-09 16:13:04 +0200
committerDmitry Petrashko <dmitry.petrashko@gmail.com>2015-04-09 16:13:04 +0200
commit6a5a6cca84221b90b14dbac8730cafef7f60e410 (patch)
tree26ed77e2406a698ad86e2a381589d1d7daebb5a3 /tests/pending/pos
parent9602523e0b6b89b73f77ac45f9a5b58060fcd6cf (diff)
downloaddotty-6a5a6cca84221b90b14dbac8730cafef7f60e410.tar.gz
dotty-6a5a6cca84221b90b14dbac8730cafef7f60e410.tar.bz2
dotty-6a5a6cca84221b90b14dbac8730cafef7f60e410.zip
Replace tabs with 4 spaces in Dotty tests.
Diffstat (limited to 'tests/pending/pos')
-rw-r--r--tests/pending/pos/lambdalift1.scala8
-rw-r--r--[-rwxr-xr-x]tests/pending/pos/t1756.scala0
-rw-r--r--[-rwxr-xr-x]tests/pending/pos/t2913.scala0
-rw-r--r--tests/pending/pos/t3480.scala2
-rw-r--r--[-rwxr-xr-x]tests/pending/pos/t3568.scala0
-rw-r--r--tests/pending/pos/t4176b.scala6
-rw-r--r--[-rwxr-xr-x]tests/pending/pos/t4553.scala0
-rw-r--r--tests/pending/pos/t4579.scala2
-rw-r--r--tests/pending/pos/t5029.scala2
-rw-r--r--tests/pending/pos/t5119.scala4
-rw-r--r--tests/pending/pos/t573.scala2
-rw-r--r--tests/pending/pos/t5967.scala8
-rw-r--r--tests/pending/pos/t6335.scala8
-rw-r--r--tests/pending/pos/t6966.scala14
-rw-r--r--tests/pending/pos/t7011.scala2
-rw-r--r--tests/pending/pos/t7022.scala8
-rw-r--r--tests/pending/pos/test5.scala22
-rw-r--r--tests/pending/pos/test5refine.scala30
18 files changed, 59 insertions, 59 deletions
diff --git a/tests/pending/pos/lambdalift1.scala b/tests/pending/pos/lambdalift1.scala
index 01b224c3b..7353c32c6 100644
--- a/tests/pending/pos/lambdalift1.scala
+++ b/tests/pending/pos/lambdalift1.scala
@@ -6,10 +6,10 @@ object test {
def print() = java.lang.System.out.println(x);
class A() {
def g() = {
- class B() {
- def h() = print()
- }
- new B().h()
+ class B() {
+ def h() = print()
+ }
+ new B().h()
}
}
new A().g()
diff --git a/tests/pending/pos/t1756.scala b/tests/pending/pos/t1756.scala
index 1d067c3b0..1d067c3b0 100755..100644
--- a/tests/pending/pos/t1756.scala
+++ b/tests/pending/pos/t1756.scala
diff --git a/tests/pending/pos/t2913.scala b/tests/pending/pos/t2913.scala
index 21700e71a..21700e71a 100755..100644
--- a/tests/pending/pos/t2913.scala
+++ b/tests/pending/pos/t2913.scala
diff --git a/tests/pending/pos/t3480.scala b/tests/pending/pos/t3480.scala
index f04ea2933..ba2e1a4b8 100644
--- a/tests/pending/pos/t3480.scala
+++ b/tests/pending/pos/t3480.scala
@@ -1,4 +1,4 @@
object Test {
val List(_: _*) = List(1)
- val Array( who, what : _* ) = "Eclipse plugin cannot not handle this" split (" ")
+ val Array( who, what : _* ) = "Eclipse plugin cannot not handle this" split (" ")
}
diff --git a/tests/pending/pos/t3568.scala b/tests/pending/pos/t3568.scala
index 50f0cdb2e..50f0cdb2e 100755..100644
--- a/tests/pending/pos/t3568.scala
+++ b/tests/pending/pos/t3568.scala
diff --git a/tests/pending/pos/t4176b.scala b/tests/pending/pos/t4176b.scala
index 11914c50c..f7d83365c 100644
--- a/tests/pending/pos/t4176b.scala
+++ b/tests/pending/pos/t4176b.scala
@@ -1,5 +1,5 @@
object Test {
- def foo(a: String*) = a
- val fooEta = foo _
- (foo: Seq[String] => Seq[String])
+ def foo(a: String*) = a
+ val fooEta = foo _
+ (foo: Seq[String] => Seq[String])
}
diff --git a/tests/pending/pos/t4553.scala b/tests/pending/pos/t4553.scala
index e9bef4099..e9bef4099 100755..100644
--- a/tests/pending/pos/t4553.scala
+++ b/tests/pending/pos/t4553.scala
diff --git a/tests/pending/pos/t4579.scala b/tests/pending/pos/t4579.scala
index b298ee579..0db527318 100644
--- a/tests/pending/pos/t4579.scala
+++ b/tests/pending/pos/t4579.scala
@@ -312,7 +312,7 @@ object LispAny extends Lisp {
case 'cond :: ('else :: expr :: Nil) :: rest =>
normalize(expr);
case 'cond :: (test :: expr :: Nil) :: rest =>
- normalize('if :: test :: expr :: ('cond :: rest) :: Nil)
+ normalize('if :: test :: expr :: ('cond :: rest) :: Nil)
case 'cond :: 'else :: expr :: Nil =>
normalize(expr)
case h :: t =>
diff --git a/tests/pending/pos/t5029.scala b/tests/pending/pos/t5029.scala
index b68fc0367..f32d0c650 100644
--- a/tests/pending/pos/t5029.scala
+++ b/tests/pending/pos/t5029.scala
@@ -1,3 +1,3 @@
object Test {
- (Vector(): Seq[_]) match { case List() => true; case Nil => false }
+ (Vector(): Seq[_]) match { case List() => true; case Nil => false }
}
diff --git a/tests/pending/pos/t5119.scala b/tests/pending/pos/t5119.scala
index 4a67244e5..39f626e53 100644
--- a/tests/pending/pos/t5119.scala
+++ b/tests/pending/pos/t5119.scala
@@ -4,8 +4,8 @@ object Test {
class IMap0[K[_], V[_]](backing: Map[K[_], V[_]]) {
def mapSeparate[VL[_], VR[_]](f: V[_] => ({type l[T] = Either[VL[T], VR[T]]})#l[_] ) = {
backing.view.map { case (k,v) => f(v) match {
- case Left(l) => Left((k, l))
- case Right(r) => Right((k, r))
+ case Left(l) => Left((k, l))
+ case Right(r) => Right((k, r))
}
}
}
diff --git a/tests/pending/pos/t573.scala b/tests/pending/pos/t573.scala
index 694d001e3..1aadb446c 100644
--- a/tests/pending/pos/t573.scala
+++ b/tests/pending/pos/t573.scala
@@ -20,7 +20,7 @@ abstract class Linked {
abstract class Node0 {
self: Node =>
- var next : Node = _;
+ var next : Node = _;
var prev : Node = _;
def get(dir : Dir) = if (dir == BEFORE) prev; else next;
diff --git a/tests/pending/pos/t5967.scala b/tests/pending/pos/t5967.scala
index eb9bd6dfa..cd219c031 100644
--- a/tests/pending/pos/t5967.scala
+++ b/tests/pending/pos/t5967.scala
@@ -1,6 +1,6 @@
object Test {
- def f(a: Int*) = a match {
- case 0 :: Nil => "List(0)! My favorite Seq!"
- case _ => a.toString
- }
+ def f(a: Int*) = a match {
+ case 0 :: Nil => "List(0)! My favorite Seq!"
+ case _ => a.toString
+ }
}
diff --git a/tests/pending/pos/t6335.scala b/tests/pending/pos/t6335.scala
index 50e34092d..eb052db19 100644
--- a/tests/pending/pos/t6335.scala
+++ b/tests/pending/pos/t6335.scala
@@ -12,14 +12,14 @@ object E extends Z {
}
trait Z {
- def Z = 0
+ def Z = 0
}
object Test {
- import E._
- 0.xx
+ import E._
+ 0.xx
- "".yy
+ "".yy
true.zz
}
diff --git a/tests/pending/pos/t6966.scala b/tests/pending/pos/t6966.scala
index a43d7c501..cd91221a6 100644
--- a/tests/pending/pos/t6966.scala
+++ b/tests/pending/pos/t6966.scala
@@ -2,13 +2,13 @@ import Ordering.{Byte, comparatorToOrdering}
trait Format[T]
trait InputCache[T]
object CacheIvy {
- implicit def basicInputCache[I](implicit fmt: Format[I], eqv: Equiv[I]): InputCache[I] = null
- implicit def arrEquiv[T](implicit t: Equiv[T]): Equiv[Array[T]] = null
- implicit def hNilCache: InputCache[HNil] = null
- implicit def ByteArrayFormat: Format[Array[Byte]] = null
- type :+:[H, T <: HList] = HCons[H,T]
- implicit def hConsCache[H, T <: HList](implicit head: InputCache[H], tail: InputCache[T]): InputCache[H :+: T] = null
- hConsCache[Array[Byte], HNil]
+ implicit def basicInputCache[I](implicit fmt: Format[I], eqv: Equiv[I]): InputCache[I] = null
+ implicit def arrEquiv[T](implicit t: Equiv[T]): Equiv[Array[T]] = null
+ implicit def hNilCache: InputCache[HNil] = null
+ implicit def ByteArrayFormat: Format[Array[Byte]] = null
+ type :+:[H, T <: HList] = HCons[H,T]
+ implicit def hConsCache[H, T <: HList](implicit head: InputCache[H], tail: InputCache[T]): InputCache[H :+: T] = null
+ hConsCache[Array[Byte], HNil]
}
sealed trait HList
diff --git a/tests/pending/pos/t7011.scala b/tests/pending/pos/t7011.scala
index 18d7aeee7..f1f71b9be 100644
--- a/tests/pending/pos/t7011.scala
+++ b/tests/pending/pos/t7011.scala
@@ -1,5 +1,5 @@
object bar {
- def foo: Unit = {
+ def foo: Unit = {
lazy val x = 42
{()=>x}
diff --git a/tests/pending/pos/t7022.scala b/tests/pending/pos/t7022.scala
index 0609e2d25..c86602664 100644
--- a/tests/pending/pos/t7022.scala
+++ b/tests/pending/pos/t7022.scala
@@ -1,9 +1,9 @@
class Catch[+T] {
- def either[U >: T](body: => U): Either[Throwable, U] = ???
+ def either[U >: T](body: => U): Either[Throwable, U] = ???
}
object Test {
- implicit class RichCatch[T](val c: Catch[T]) extends AnyVal {
- def validation[U >: T](u: => U): Either[Throwable, U] = c.either(u)
- }
+ implicit class RichCatch[T](val c: Catch[T]) extends AnyVal {
+ def validation[U >: T](u: => U): Either[Throwable, U] = c.either(u)
+ }
}
diff --git a/tests/pending/pos/test5.scala b/tests/pending/pos/test5.scala
index 4dbafc9ac..c19478048 100644
--- a/tests/pending/pos/test5.scala
+++ b/tests/pending/pos/test5.scala
@@ -12,12 +12,12 @@ object test {
class M[P]() {
abstract class I[X]() {
- // Methods to check the type X and P as seen from instances of I
- def chk_ix(x: X): Unit = ();
- def chk_ip(p: P): Unit;
+ // Methods to check the type X and P as seen from instances of I
+ def chk_ix(x: X): Unit = ();
+ def chk_ip(p: P): Unit;
- // Value with type X as seen from instances of I
- def val_ix: X = val_ix;
+ // Value with type X as seen from instances of I
+ def val_ix: X = val_ix;
}
val i:I[G[P]] = null;
@@ -31,13 +31,13 @@ object test {
val j:J[G[Q]] = null;
abstract class J[Y]() extends I[G[Y]]() {
- // Values with types Y and X as seen from instances of J
- def val_jy: Y = val_jy;
- def val_jx: G[Y] = g[Y](val_jy);
+ // Values with types Y and X as seen from instances of J
+ def val_jy: Y = val_jy;
+ def val_jx: G[Y] = g[Y](val_jy);
- // Check type P
- chk_ip(val_mp);
- chk_ip(val_np);
+ // Check type P
+ chk_ip(val_mp);
+ chk_ip(val_np);
}
// Values with types Q, X.P, i.X, j.Y and j.X as seen from instances of N
diff --git a/tests/pending/pos/test5refine.scala b/tests/pending/pos/test5refine.scala
index 5459b3b97..09ea179da 100644
--- a/tests/pending/pos/test5refine.scala
+++ b/tests/pending/pos/test5refine.scala
@@ -13,14 +13,14 @@ object test {
abstract class M() {
type P;
abstract class I() {
- type X;
+ type X;
- // Methods to check the type X and P as seen from instances of I
- def chk_ix(x: X): Unit = {}
- def chk_ip(p: P): Unit = {}
+ // Methods to check the type X and P as seen from instances of I
+ def chk_ix(x: X): Unit = {}
+ def chk_ip(p: P): Unit = {}
- // Value with type X as seen from instances of I
- def val_ix: X = val_ix;
+ // Value with type X as seen from instances of I
+ def val_ix: X = val_ix;
}
val i: I { type X = G { type Ig = P } } = null;
@@ -36,15 +36,15 @@ object test {
val j:J { type Y = G { type Ig = Q } } = null;
abstract class J() extends I() {
- type Y;
- type X = G { type Ig = Y; };
- // Values with types Y and X as seen from instances of J
- def val_jy: Y = val_jy;
- def val_jx: G { type Ig = Y; } = g[Y](val_jy);
-
- // Check type P
- chk_ip(val_mp);
- chk_ip(val_np);
+ type Y;
+ type X = G { type Ig = Y; };
+ // Values with types Y and X as seen from instances of J
+ def val_jy: Y = val_jy;
+ def val_jx: G { type Ig = Y; } = g[Y](val_jy);
+
+ // Check type P
+ chk_ip(val_mp);
+ chk_ip(val_np);
}
// Values with types Q, X.P, i.X, j.Y and j.X as seen from instances of N