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