IR KT-44233 support flexible nullability in IrTypeSystemContext

^KT-44233 Fixed Target versions 1.5-M1
This commit is contained in:
Dmitry Petrov
2021-01-11 13:43:01 +03:00
committed by TeamCityServer
parent 093f62caac
commit b02a9846d0
13 changed files with 163 additions and 16 deletions
+18
View File
@@ -0,0 +1,18 @@
// TARGET_BACKEND: JVM
// IGNORE_BACKEND_FIR: JVM_IR
// FULL_JDK
import java.util.concurrent.ConcurrentSkipListSet
class StringIterable : Iterable<String> {
private val strings = ConcurrentSkipListSet<String>()
override fun iterator() = strings.iterator()
}
fun box(): String {
val si = StringIterable()
return if (si.iterator().hasNext())
"Failed"
else
"OK"
}