Files
kotlin-fork/idea/testData/refactoring/changeSignature/RemoveReceiverForMemberBefore.kt
T
2015-11-02 15:15:39 +03:00

17 lines
272 B
Kotlin
Vendored

class A(val k: Int) {
fun X.<caret>foo(s: String, n: Int): Boolean {
return s.length * this.k - n.inc() + this@A.k > 0
}
fun test() {
X(0).foo("1", 2)
}
}
class X(val k: Int)
fun test() {
with(A(3)) {
X(0).foo("1", 2)
}
}