Introduce Property: Place property before its usages
This commit is contained in:
@@ -3,10 +3,10 @@
|
||||
class A(val n: Int = 1) {
|
||||
val m: Int = 2
|
||||
|
||||
private val i = m + n + 1
|
||||
|
||||
fun foo(): Int {
|
||||
return i
|
||||
}
|
||||
|
||||
private val i = m + n + 1
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user