Files
kotlin-fork/idea/testData/intentions/convertParameterToReceiver/memberFun.kt
T
2015-10-14 20:39:35 +03:00

16 lines
218 B
Kotlin
Vendored

// WITH_RUNTIME
class A {
fun foo(<caret>s: String, n: Int): Boolean {
return s.length - n/2 > 1
}
fun test() {
foo("1", 2)
}
}
fun test() {
with(A()) {
foo("1", 2)
}
}