Skip to content

Commit 0f50d77

Browse files
committed
Add blank line before (x: T) in decompilation
1 parent d76ccc1 commit 0f50d77

File tree

8 files changed

+14
-0
lines changed

8 files changed

+14
-0
lines changed

tests/run-with-compiler/i3876-c.check

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
val f: scala.Function1[scala.Int, scala.Int] {
55
def apply(x: scala.Int): scala.Int
66
} = ((x: scala.Int) => x.+(x))
7+
78
(f: scala.Function1[scala.Int, scala.Int] {
89
def apply(x: scala.Int): scala.Int
910
}).apply(x$1)

tests/run-with-compiler/quote-nested-3.check

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
type T = scala.Predef.String
33
val x: java.lang.String = "foo"
44
val z: T = x
5+
56
(x: java.lang.String)
67
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
22
val t: scala.quoted.Type[scala.Predef.String] = scala.quoted.Type.apply[scala.Predef.String]
3+
34
(t: scala.quoted.Type[scala.Predef.String])
45
}

tests/run-with-compiler/quote-owners-2.check

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,12 @@
44
val a: immutable.List[scala.Int] = {
55
type T = scala.List[scala.Int]
66
val b: T = scala.Nil.::[scala.Int](3)
7+
78
(b: collection.immutable.List[scala.Int])
89
}
10+
911
(a.head: scala.Int)
1012
}
13+
1114
(ff: scala.Int)
1215
}

tests/run-with-compiler/quote-owners.check

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44
val a: scala.Int = 9
55
a.+(0)
66
}
7+
78
(ff: scala.Int)
89
}

tests/run-with-compiler/quote-unrolled-foreach.check

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@
6969
array.update(1, 2)
7070
array.update(2, 3)
7171
array.update(3, 4)
72+
7273
(array: scala.Array[scala.Int])
7374
}
7475

@@ -79,6 +80,7 @@
7980
array.update(1, 3)
8081
array.update(2, 4)
8182
array.update(3, 5)
83+
8284
(array: scala.Array[scala.Int])
8385
}
8486
val size: scala.Int = arr1.length

tests/run-with-compiler/shonan-hmm-simple.check

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Complex(4,3)
1313
sum = sum.+(arr1.apply(i).*(arr2.apply(i)))
1414
i = i.+(1)
1515
}
16+
1617
(sum: scala.Int)
1718
})
1819
10

tests/run-with-compiler/shonan-hmm.check

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ List(25, 30, 20, 43, 44)
2525
sum = sum.+(v.apply(i$2).*(a.apply(i).apply(i$2)))
2626
i$2 = i$2.+(1)
2727
}
28+
2829
(sum: scala.Int)
2930
})
3031
i = i.+(1)
@@ -232,6 +233,7 @@ List(25, 30, 20, 43, 44)
232233
sum = sum.+(v.apply(i).*(arr.apply(3).apply(i)))
233234
i = i.+(1)
234235
}
236+
235237
(sum: scala.Int)
236238
})
237239
vout.update(4, v.apply(2).*(3).+(v.apply(4).*(7)))
@@ -261,6 +263,7 @@ List(25, 30, 20, 43, 44)
261263
}.apply(i)))
262264
i = i.+(1)
263265
}
266+
264267
(sum: scala.Int)
265268
})
266269
vout.update(4, v.apply(2).*(3).+(v.apply(4).*(7)))
@@ -291,6 +294,7 @@ List(25, 30, 20, 43, 44)
291294
sum = sum.+(v.apply(i).*(row.apply(i)))
292295
i = i.+(1)
293296
}
297+
294298
(sum: scala.Int)
295299
})
296300
vout.update(4, v.apply(2).*(3).+(v.apply(4).*(7)))

0 commit comments

Comments
 (0)