Extract Function: Choose default visibility at analysis phase
This commit is contained in:
+1
-1
@@ -5,7 +5,7 @@
|
||||
class A(val n: Int) {
|
||||
fun foo(a: Int, b: Int) = { i(a, b) - 1 }.invoke()
|
||||
|
||||
fun i(a: Int, b: Int): Int {
|
||||
private fun i(a: Int, b: Int): Int {
|
||||
return a + b - n
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user