tests: apply official code style
#KT-38632 Fixed
This commit is contained in:
+6
-4
@@ -7,7 +7,9 @@ fun newFun(p1: Int, a: Int, p2: Int, p3: Int, b: Int){}
|
||||
|
||||
|
||||
fun foo() {
|
||||
newFun(0, // 0
|
||||
-1, 1, // 1
|
||||
2, // 2
|
||||
-2)
|
||||
newFun(
|
||||
0, // 0
|
||||
-1, 1, // 1
|
||||
2, // 2
|
||||
-2
|
||||
)
|
||||
|
||||
+3
-2
@@ -8,6 +8,7 @@ fun newFun(p4: Int, p3: Int, p2: Int, p1: Int, p0: Int){}
|
||||
|
||||
fun foo() {
|
||||
newFun(/* 4 */ 4, 3, 2, // 2
|
||||
/* 1 */ 1,
|
||||
/* 0 */ 0)
|
||||
/* 1 */ 1,
|
||||
/* 0 */ 0
|
||||
)
|
||||
}
|
||||
|
||||
+3
-2
@@ -8,7 +8,8 @@ interface X {
|
||||
fun newFun(x: X, a: Int, b: Int){}
|
||||
|
||||
fun foo(x: X) {
|
||||
newFun(x/*receiver*/, 1, // pass 1
|
||||
2 // pass 2
|
||||
newFun(
|
||||
x/*receiver*/, 1, // pass 1
|
||||
2 // pass 2
|
||||
)
|
||||
}
|
||||
|
||||
+4
-3
@@ -9,7 +9,8 @@ interface X {
|
||||
|
||||
fun foo(x: X) {
|
||||
x.newFun(
|
||||
1,
|
||||
2,
|
||||
0)
|
||||
1,
|
||||
2,
|
||||
0
|
||||
)
|
||||
}
|
||||
|
||||
Vendored
+4
-4
@@ -8,8 +8,8 @@ fun Int.newFun(): Int = this
|
||||
|
||||
fun foo(list: List<String>): Int {
|
||||
return list
|
||||
.filter { it.isNotEmpty() }
|
||||
.map { it.length }
|
||||
.first()
|
||||
.<caret>newFun()
|
||||
.filter { it.isNotEmpty() }
|
||||
.map { it.length }
|
||||
.first()
|
||||
.<caret>newFun()
|
||||
}
|
||||
|
||||
+5
-3
@@ -8,7 +8,9 @@ interface X {
|
||||
}
|
||||
|
||||
fun foo(x: X) {
|
||||
x.<caret>newFun(1,
|
||||
2,
|
||||
3)
|
||||
x.<caret>newFun(
|
||||
1,
|
||||
2,
|
||||
3
|
||||
)
|
||||
}
|
||||
|
||||
+2
-2
@@ -35,6 +35,6 @@ fun createHi(any: Any) = "Hi $any"
|
||||
|
||||
val unDeprecateMe = mutableListOf("Hello").apply {
|
||||
addA(d(::createHi, 1 ) { // Run the quick fix from the IDE and watch it produce broken code.
|
||||
println("Yo")
|
||||
}, Unit)
|
||||
println("Yo")
|
||||
}, Unit)
|
||||
}
|
||||
Reference in New Issue
Block a user