Load additional JDK functions into built-ins member scope
#KT-5990 Fixed #KT-7127 Fixed #KT-10370 Fixed
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
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 }
|
||||
}
|
||||
Reference in New Issue
Block a user