Introduce Property: Initial support (properties with getter)
This commit is contained in:
+15
@@ -0,0 +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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user