Files
kotlin-fork/idea/testData/refactoring/introduceParameter/functionMultipleUsagesSingleReplace.kt
T
2015-04-09 13:49:22 +03:00

9 lines
153 B
Kotlin
Vendored

// SINGLE_REPLACE
fun foo(a: Int, s: String): Int {
val t = (a + 1) * 2
return <selection>a + 1</selection> - t
}
fun test() {
foo(1, "2")
}