Files
kotlin-fork/idea/testData/refactoring/introduceLambdaParameter/lambdaParamInPrimaryConstructor.kt
T

12 lines
206 B
Kotlin
Vendored

// WITH_DEFAULT_VALUE: false
// TARGET:
class Foo(val a: Int) {
fun foo(n: Int): Int {
val t = a + n + 1
return <selection>a - n</selection> - t
}
}
fun test() {
Foo(1).foo(2)
}