diff options
author | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2015-04-09 16:13:04 +0200 |
---|---|---|
committer | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2015-04-09 16:13:04 +0200 |
commit | 6a5a6cca84221b90b14dbac8730cafef7f60e410 (patch) | |
tree | 26ed77e2406a698ad86e2a381589d1d7daebb5a3 /tests/untried/pos | |
parent | 9602523e0b6b89b73f77ac45f9a5b58060fcd6cf (diff) | |
download | dotty-6a5a6cca84221b90b14dbac8730cafef7f60e410.tar.gz dotty-6a5a6cca84221b90b14dbac8730cafef7f60e410.tar.bz2 dotty-6a5a6cca84221b90b14dbac8730cafef7f60e410.zip |
Replace tabs with 4 spaces in Dotty tests.
Diffstat (limited to 'tests/untried/pos')
22 files changed, 57 insertions, 57 deletions
diff --git a/tests/untried/pos/ilya2/A.scala b/tests/untried/pos/ilya2/A.scala index 923b50f04..e9b225be8 100644 --- a/tests/untried/pos/ilya2/A.scala +++ b/tests/untried/pos/ilya2/A.scala @@ -1,3 +1,3 @@ class A { - def foo = new B().bar(null) + def foo = new B().bar(null) } diff --git a/tests/untried/pos/lexical.scala b/tests/untried/pos/lexical.scala index 8c29513bb..8c29513bb 100755..100644 --- a/tests/untried/pos/lexical.scala +++ b/tests/untried/pos/lexical.scala diff --git a/tests/untried/pos/packageobjs.scala b/tests/untried/pos/packageobjs.scala index ccab13371..ccab13371 100755..100644 --- a/tests/untried/pos/packageobjs.scala +++ b/tests/untried/pos/packageobjs.scala diff --git a/tests/untried/pos/pos-bug1210.scala b/tests/untried/pos/pos-bug1210.scala index eb163a956..c19e77e80 100644 --- a/tests/untried/pos/pos-bug1210.scala +++ b/tests/untried/pos/pos-bug1210.scala @@ -7,21 +7,21 @@ object Test abstract class M { self => - type Settings - type selfType = M {type Settings = self.Settings} + type Settings + type selfType = M {type Settings = self.Settings} val v: List[selfType] = f[selfType]((x: selfType) => x.v) } abstract class M2 { self => - type Settings - type selfType = M2 {type Settings = self.Settings} + type Settings + type selfType = M2 {type Settings = self.Settings} def g: List[selfType] = Nil { - f[selfType](_.g) + f[selfType](_.g) } } } diff --git a/tests/untried/pos/scoping2.scala b/tests/untried/pos/scoping2.scala index 39f3ef5f0..299c5e304 100644 --- a/tests/untried/pos/scoping2.scala +++ b/tests/untried/pos/scoping2.scala @@ -4,8 +4,8 @@ object That { trait I {} } trait B { - type T <: J; - trait J {} + type T <: J; + trait J {} } trait C extends A with B { type T <: I with J; diff --git a/tests/untried/pos/simple-exceptions.scala b/tests/untried/pos/simple-exceptions.scala index a9f16bf90..4572b9aa6 100644 --- a/tests/untried/pos/simple-exceptions.scala +++ b/tests/untried/pos/simple-exceptions.scala @@ -7,7 +7,7 @@ object Test { def main(args: Array[String]): Unit = { try { try { - Console.println("hi!") + Console.println("hi!") sys.error("xx") } finally Console.println("ho!") diff --git a/tests/untried/pos/spec-t6286.scala b/tests/untried/pos/spec-t6286.scala index 4d87998ec..4d87998ec 100755..100644 --- a/tests/untried/pos/spec-t6286.scala +++ b/tests/untried/pos/spec-t6286.scala diff --git a/tests/untried/pos/t2635.scala b/tests/untried/pos/t2635.scala index 7cd553135..7cd553135 100755..100644 --- a/tests/untried/pos/t2635.scala +++ b/tests/untried/pos/t2635.scala diff --git a/tests/untried/pos/t2683.scala b/tests/untried/pos/t2683.scala index 4ba34b554..4ba34b554 100755..100644 --- a/tests/untried/pos/t2683.scala +++ b/tests/untried/pos/t2683.scala diff --git a/tests/untried/pos/t3174b.scala b/tests/untried/pos/t3174b.scala index 4df1bfe83..4df1bfe83 100755..100644 --- a/tests/untried/pos/t3174b.scala +++ b/tests/untried/pos/t3174b.scala diff --git a/tests/untried/pos/t3570.scala b/tests/untried/pos/t3570.scala index 0e20905af..237391719 100644 --- a/tests/untried/pos/t3570.scala +++ b/tests/untried/pos/t3570.scala @@ -1,7 +1,7 @@ class test { - object Break extends Throwable - def break = throw Break - def block(x: => Unit): Unit = { - try { x } catch { case e: Break.type => } - } + object Break extends Throwable + def break = throw Break + def block(x: => Unit): Unit = { + try { x } catch { case e: Break.type => } + } } diff --git a/tests/untried/pos/t3578.scala b/tests/untried/pos/t3578.scala index d98411820..2ce92a776 100644 --- a/tests/untried/pos/t3578.scala +++ b/tests/untried/pos/t3578.scala @@ -2,16 +2,16 @@ object Test { sealed abstract class JValue { def ++(other: JValue) = { def append(value1: JValue, value2: JValue): JValue = (value1, value2) match { - case (JNothing, x) => x - case (x, JNothing) => x - case (JObject(xs), x: JField) => JObject(xs ::: List(x)) - case (x: JField, JObject(xs)) => JObject(x :: xs) - case (JArray(xs), JArray(ys)) => JArray(xs ::: ys) - case (JArray(xs), v: JValue) => JArray(xs ::: List(v)) - case (v: JValue, JArray(xs)) => JArray(v :: xs) - case (f1: JField, f2: JField) => JObject(f1 :: f2 :: Nil) - case (JField(n, v1), v2: JValue) => JField(n, append(v1, v2)) - case (x, y) => JArray(x :: y :: Nil) + case (JNothing, x) => x + case (x, JNothing) => x + case (JObject(xs), x: JField) => JObject(xs ::: List(x)) + case (x: JField, JObject(xs)) => JObject(x :: xs) + case (JArray(xs), JArray(ys)) => JArray(xs ::: ys) + case (JArray(xs), v: JValue) => JArray(xs ::: List(v)) + case (v: JValue, JArray(xs)) => JArray(v :: xs) + case (f1: JField, f2: JField) => JObject(f1 :: f2 :: Nil) + case (JField(n, v1), v2: JValue) => JField(n, append(v1, v2)) + case (x, y) => JArray(x :: y :: Nil) } append(this, other) } diff --git a/tests/untried/pos/t4220.scala b/tests/untried/pos/t4220.scala index 98f264976..280bb6dab 100644 --- a/tests/untried/pos/t4220.scala +++ b/tests/untried/pos/t4220.scala @@ -3,5 +3,5 @@ class Boo(a: Int = 0) object test { - class Boo + class Boo } diff --git a/tests/untried/pos/t443.scala b/tests/untried/pos/t443.scala index cdaefe9ec..f1f7ec258 100644 --- a/tests/untried/pos/t443.scala +++ b/tests/untried/pos/t443.scala @@ -3,12 +3,12 @@ object Test { def lookup(): Option[Tuple2[String, String]] = ((null: Option[Tuple2[String, String]]) : @unchecked) match { case Some((_, _)) => - if (true) - Some((null, null)) - else - lookup() match { - case Some(_) => Some(null) - case None => None - } + if (true) + Some((null, null)) + else + lookup() match { + case Some(_) => Some(null) + case None => None + } } } diff --git a/tests/untried/pos/t4842.scala b/tests/untried/pos/t4842.scala index 17ff68483..24a71294d 100644 --- a/tests/untried/pos/t4842.scala +++ b/tests/untried/pos/t4842.scala @@ -13,14 +13,14 @@ class Blerg (x: AnyRef) { class Outer { - class Inner (x: AnyRef) { - def this() = { - this(new { class Bar { println(Bar.this); new { println(Bar.this) } }; new Bar } ) // okay - } + class Inner (x: AnyRef) { + def this() = { + this(new { class Bar { println(Bar.this); new { println(Bar.this) } }; new Bar } ) // okay + } - def this(x: Boolean) = { - this(new { println(Outer.this) } ) // okay - } - } + def this(x: Boolean) = { + this(new { println(Outer.this) } ) // okay + } + } } diff --git a/tests/untried/pos/t6028/t6028_1.scala b/tests/untried/pos/t6028/t6028_1.scala index 6edb76069..521d2e07d 100644 --- a/tests/untried/pos/t6028/t6028_1.scala +++ b/tests/untried/pos/t6028/t6028_1.scala @@ -1,3 +1,3 @@ class C { - def foo(a: Int): Unit = () => a + def foo(a: Int): Unit = () => a } diff --git a/tests/untried/pos/t6028/t6028_2.scala b/tests/untried/pos/t6028/t6028_2.scala index f44048c0a..de053b8e6 100644 --- a/tests/untried/pos/t6028/t6028_2.scala +++ b/tests/untried/pos/t6028/t6028_2.scala @@ -1,4 +1,4 @@ object Test { - // ensure that parameter names are untouched by lambdalift - new C().foo(a = 0) + // ensure that parameter names are untouched by lambdalift + new C().foo(a = 0) } diff --git a/tests/untried/pos/t6601/UsePrivateValueClass_2.scala b/tests/untried/pos/t6601/UsePrivateValueClass_2.scala index 461b8397b..ec9793751 100644 --- a/tests/untried/pos/t6601/UsePrivateValueClass_2.scala +++ b/tests/untried/pos/t6601/UsePrivateValueClass_2.scala @@ -1,8 +1,8 @@ object Test { - // After the first attempt to make seprately compiled value - // classes respect the privacy of constructors, we got: - // - // exception when typing v.a().==(v.a())/class scala.reflect.internal.Trees$Apply + // After the first attempt to make seprately compiled value + // classes respect the privacy of constructors, we got: + // + // exception when typing v.a().==(v.a())/class scala.reflect.internal.Trees$Apply // constructor V in class V cannot be accessed in object Test in file test/files/pos/t6601/UsePrivateValueClass_2.scala // scala.reflect.internal.Types$TypeError: constructor V in class V cannot be accessed in object Test def foo(v: V) = v.a == v.a diff --git a/tests/untried/pos/t7532b/A_1.scala b/tests/untried/pos/t7532b/A_1.scala index 586465ee6..6d70d15ff 100644 --- a/tests/untried/pos/t7532b/A_1.scala +++ b/tests/untried/pos/t7532b/A_1.scala @@ -1,7 +1,7 @@ package pack class R { - class attr // Will have the bytecode name `R$attr`, not to be confused with `R@tr`! - class `@` + class attr // Will have the bytecode name `R$attr`, not to be confused with `R@tr`! + class `@` } class `@` diff --git a/tests/untried/pos/tcpoly_infer_easy.scala b/tests/untried/pos/tcpoly_infer_easy.scala index 0f1929502..bfa369f4a 100644 --- a/tests/untried/pos/tcpoly_infer_easy.scala +++ b/tests/untried/pos/tcpoly_infer_easy.scala @@ -1,5 +1,5 @@ object Test { - def test[CC[+X] <: Iterable[X], A](xs: CC[A]): CC[A] = xs - val xs = test(List(1,2)) - val xs2: List[Int] = test(List(1,2)) + def test[CC[+X] <: Iterable[X], A](xs: CC[A]): CC[A] = xs + val xs = test(List(1,2)) + val xs2: List[Int] = test(List(1,2)) } diff --git a/tests/untried/pos/test4refine.scala b/tests/untried/pos/test4refine.scala index 671096293..abf078193 100644 --- a/tests/untried/pos/test4refine.scala +++ b/tests/untried/pos/test4refine.scala @@ -18,7 +18,7 @@ trait S extends o.I { abstract class O() { type X; abstract trait I { - type Y; + type Y; def foo(x: X, y: Y): E = e; } val i:I { type Y = E } = null; diff --git a/tests/untried/pos/unapplyComplex.scala b/tests/untried/pos/unapplyComplex.scala index 148fcc1bb..8e0fe7821 100644 --- a/tests/untried/pos/unapplyComplex.scala +++ b/tests/untried/pos/unapplyComplex.scala @@ -14,26 +14,26 @@ object ComplexRect { def unapply(z:Complex): Option[Complex] = { if(z.isInstanceOf[ComplexRect]) Some(z) else z match { case ComplexPolar(mod, arg) => - Some(new ComplexRect(mod*math.cos(arg), mod*math.sin(arg))) + Some(new ComplexRect(mod*math.cos(arg), mod*math.sin(arg))) } } } object ComplexPolar { def unapply(z:Complex): Option[Complex] = { if(z.isInstanceOf[ComplexPolar]) Some(z) else z match { case ComplexRect(re,im) => - Some(new ComplexPolar(math.sqrt(re*re + im*im), math.atan(re/im))) + Some(new ComplexPolar(math.sqrt(re*re + im*im), math.atan(re/im))) } } } object Test { def main(args:Array[String]) = { new ComplexRect(1,1) match { case ComplexPolar(mod,arg) => // z @ ??? - Console.println("mod"+mod+"arg"+arg) + Console.println("mod"+mod+"arg"+arg) } val Komplex = ComplexRect new ComplexPolar(math.sqrt(2),math.Pi / 4.0) match { case Komplex(re,im) => // z @ ??? - Console.println("re"+re+" im"+im) + Console.println("re"+re+" im"+im) } } } |