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

16 lines
203 B
Plaintext
Vendored

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