tests: apply official code style
#KT-38632 Fixed
This commit is contained in:
+7
-1
@@ -26,7 +26,13 @@ fun foo(a: Int): Int {
|
||||
return b + c + d + e
|
||||
}
|
||||
|
||||
private fun list(b: Int, a: Int, c: Int, d: Int, e: Int): List<Int> {
|
||||
private fun list(
|
||||
b: Int,
|
||||
a: Int,
|
||||
c: Int,
|
||||
d: Int,
|
||||
e: Int
|
||||
): List<Int> {
|
||||
var b1 = b
|
||||
var c1 = c
|
||||
var d1 = d
|
||||
|
||||
+6
-1
@@ -21,7 +21,12 @@ fun foo(a: Int): Int {
|
||||
return b + c + d
|
||||
}
|
||||
|
||||
private fun triple(b: Int, a: Int, c: Int, d: Int): Triple<Int, Int, Int> {
|
||||
private fun triple(
|
||||
b: Int,
|
||||
a: Int,
|
||||
c: Int,
|
||||
d: Int
|
||||
): Triple<Int, Int, Int> {
|
||||
var b1 = b
|
||||
var c1 = c
|
||||
var d1 = d
|
||||
|
||||
+1
-1
@@ -16,7 +16,7 @@ fun foo1() {
|
||||
val x = 1
|
||||
var y: Int = x
|
||||
println(
|
||||
i(x, y)
|
||||
i(x, y)
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
+5
-2
@@ -13,5 +13,8 @@ fun foo(n: Int): Int {
|
||||
return i(n, Int::bar1, Int::bar2)
|
||||
}
|
||||
|
||||
private fun i(n: Int, bar1: Int.(m: Int) -> Int, bar2: Int.(m: Int) -> Int) =
|
||||
n.bar1(n + 1).bar2(n + 2)
|
||||
private fun i(
|
||||
n: Int,
|
||||
bar1: Int.(m: Int) -> Int,
|
||||
bar2: Int.(m: Int) -> Int
|
||||
) = n.bar1(n + 1).bar2(n + 2)
|
||||
+5
-2
@@ -17,5 +17,8 @@ class A<T: Data>(val t: T) where T: DataEx {
|
||||
}
|
||||
}
|
||||
|
||||
private fun <T : Data, U : Data, V : Data> i(a: A<T>, b: A<T>.B<U>, v: V) where T : DataEx, U : DataExEx, V : DataEx =
|
||||
a.t.x + b.u.x + v.x
|
||||
private fun <T : Data, U : Data, V : Data> i(
|
||||
a: A<T>,
|
||||
b: A<T>.B<U>,
|
||||
v: V
|
||||
) where T : DataEx, U : DataExEx, V : DataEx = a.t.x + b.u.x + v.x
|
||||
Reference in New Issue
Block a user