Load additional JDK functions into built-ins member scope

#KT-5990 Fixed
 #KT-7127 Fixed
 #KT-10370 Fixed
This commit is contained in:
Denis Zharkov
2016-04-06 16:35:50 +03:00
parent 137847e0c9
commit 5bc5722051
63 changed files with 3395 additions and 147 deletions
@@ -0,0 +1,21 @@
// FILE: A.kt
import java.util.*
class Jdk6List<F> : AbstractList<F>() {
override fun get(index: Int): F {
return "OK" as F
}
override val size: Int
get() = 2
}
// FILE: B.kt
// FULL_JDK
fun box(): String {
val result = Jdk6List<String>().stream().filter { it == "OK" }.count()
if (result != 2L) return "fai1: $result"
return "OK"
}