Files
kotlin-fork/idea/resources-en/intentionDescriptions/ConvertPropertyToFunctionIntention/before.kt.template
T
2020-05-19 16:22:06 +07:00

7 lines
104 B
Plaintext

class A(val n: Int) {
<spot>val foo: Int get() = n + 1</spot>
}
fun test() {
val k = A(1).foo
}