Files
kotlin-fork/idea/testData/refactoring/introduceProperty/extractWithGetterToClass.kt
T

10 lines
167 B
Kotlin
Vendored

// EXTRACTION_TARGET: property with getter
class A(val n: Int = 1) {
val m: Int = 2
fun foo(): Int {
return <selection>m + n + 1</selection>
}
}