Files
kotlin-fork/idea/resources/intentionDescriptions/ConvertPropertyToFunctionIntention/before.kt.template
T
2015-02-05 23:12:38 +03: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
}