9 lines
131 B
Kotlin
Vendored
9 lines
131 B
Kotlin
Vendored
fun String.foo(x: X, k: Int): Boolean {
|
|
return x.k + length - k > 0
|
|
}
|
|
|
|
class X(val k: Int)
|
|
|
|
fun test() {
|
|
"1".foo(X(0), 2)
|
|
} |