Introduce Property: Place property before its usages

This commit is contained in:
Alexey Sedunov
2015-03-02 19:44:13 +03:00
parent ada5ffee57
commit 5ae9bb600c
14 changed files with 49 additions and 48 deletions
@@ -6,12 +6,12 @@ import kotlin.properties.Delegates
class A(val n: Int = 1) {
val m: Int = 2
fun foo(): Int {
return i
}
private val i: Int by Delegates.lazy {
m + n + 1
}
fun foo(): Int {
return i
}
}