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

7 lines
102 B
Plaintext

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