Introduce Property: Initial support (properties with getter)
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
// EXTRACTION_TARGET: property with getter
|
||||
class A(val n: Int = 1) {
|
||||
val m: Int = 2
|
||||
|
||||
fun foo(): Int {
|
||||
return i
|
||||
}
|
||||
|
||||
private val i: Int
|
||||
get() {
|
||||
return m + n + 1
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user