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

13 lines
215 B
Kotlin
Vendored

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