Skip to content

Commit dad71ca

Browse files
committed
Ensure spaces after if in Dotty tests.
1 parent 74957b3 commit dad71ca

17 files changed

+20
-20
lines changed

tests/pending/pos/t4579.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ object LispAny extends Lisp {
400400

401401
val globalEnv = EmptyEnvironment
402402
.extend("=", Lambda{
403-
case List(arg1, arg2) => if(arg1 == arg2) 1 else 0})
403+
case List(arg1, arg2) => if (arg1 == arg2) 1 else 0})
404404
.extend("+", Lambda{
405405
case List(arg1: Int, arg2: Int) => arg1 + arg2
406406
case List(arg1: String, arg2: String) => arg1 + arg2})

tests/pending/pos/t5012.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ class D {
44

55
class C {
66
def m: D = {
7-
if("abc".length == 0) {
7+
if ("abc".length == 0) {
88
object p // (program point 2)
99
}
1010
null

tests/pending/pos/t5541.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ class HASkipListView[ S <: Sys[ S ], A ]( private val l: HASkipList[ S, A ])( im
3636
val szm = sz - 1
3737
val keys = IndexedSeq.tabulate( sz ) { i =>
3838
val key = n.key( i )
39-
(key, if( isRight && i == szm ) "M" else key.toString)
39+
(key, if ( isRight && i == szm ) "M" else key.toString)
4040
}
41-
val chbo = if( n.isLeaf ) None else {
41+
val chbo = if ( n.isLeaf ) None else {
4242
val nb = n.asBranch
4343
Some( IndexedSeq.tabulate( sz )( i => buildBoxMap( nb.down( i ), isRight && (i == szm) )))
4444
}

tests/pending/pos/tcpoly_seq.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ trait HOSeq {
125125
// TODO: the var tl approach does not seem to work because subtyping isn't fully working yet
126126
final case class ::[+b](hd: b, private val tl: List[b]) extends List[b] {
127127
def head = hd
128-
def tail = if(tl==null) this else tl // hack
128+
def tail = if (tl==null) this else tl // hack
129129
override def isEmpty: Boolean = false
130130
}
131131

tests/pending/pos/tcpoly_seq_typealias.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ trait HOSeq {
129129
// TODO: the var tl approach does not seem to work because subtyping isn't fully working yet
130130
final case class ::[+b](hd: b, private val tl: List[b]) extends List[b] {
131131
def head = hd
132-
def tail = if(tl==null) this else tl // hack
132+
def tail = if (tl==null) this else tl // hack
133133
override def isEmpty: Boolean = false
134134
}
135135

tests/pending/pos/unapplySeq.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
object FooSeq {
22
def unapplySeq(x:Any): Option[Product2[Int,Seq[String]]] = {
3-
if(x.isInstanceOf[Bar]) {
3+
if (x.isInstanceOf[Bar]) {
44
val y = x.asInstanceOf[Bar]
55
Some(y.size, y.name)
66
} else None

tests/pos/t262.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ object O {
33
def f:A;
44
}
55
class B extends A {
6-
def f = if(1 == 2) new C else new D;
6+
def f = if (1 == 2) new C else new D;
77
}
88
class C extends A {
99
def f = this;

tests/untried/neg/lubs.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ object test1 {
33
class C extends A[C]
44
class D extends A[D]
55

6-
def f = if(1 == 2) new C else new D
6+
def f = if (1 == 2) new C else new D
77

88
val x1: A[Any] = f
99
val x2: A[A[Any]] = f

tests/untried/neg/t2275a.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
object Test {
2-
if(true) {
2+
if (true) {
33
<br>
44
}else{
55
<span>{"louenesee"}</span>

tests/untried/neg/t963b.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ object B {
1010
var a : A = _
1111
var b : Boolean = false
1212
def y : A = {
13-
if(b) {
13+
if (b) {
1414
a = new A { type T = Int; var v = 1 }
1515
a
1616
} else {

0 commit comments

Comments
 (0)