Files
kotlin-fork/idea/testData/refactoring/introduceProperty/replaceDuplicates.kt
T
2015-03-04 23:06:05 +03:00

9 lines
198 B
Kotlin
Vendored

// EXTRACTION_TARGET: property with initializer
class A(val n: Int) {
fun foo(k: Int) {
val a = <selection>n + 1</selection>
val b = n + 1 - 2
val c = foo(n + 1)
}
}