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
@@ -1,15 +1,15 @@
// EXTRACTION_TARGET: property with getter
class A {
fun foo(): Int {
val b = i
val c = b - 1
}
private val i: Int
get() {
val a = 1 + 2
val b = a * 2
return b
}
fun foo(): Int {
val b = i
val c = b - 1
}
}