mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-16 08:31:35 +00:00
11 lines
258 B
Kotlin
Vendored
11 lines
258 B
Kotlin
Vendored
import java.util.stream.*
|
|
|
|
interface A : MutableCollection<String> {
|
|
override fun removeIf(x: java.util.function.Predicate<in String>) = false
|
|
}
|
|
|
|
fun foo(x: MutableList<String>, y: A) {
|
|
x.removeIf { it.length > 0 }
|
|
y.removeIf { it.length > 0 }
|
|
}
|