Files
kotlin-fork/compiler/testData/codegen/box/boxingOptimization/taintedValues.kt
T
2020-01-08 13:20:00 +01:00

13 lines
279 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
// KJS_WITH_FULL_RUNTIME
// WITH_RUNTIME
// Just make sure there's no VerifyError
fun getOrElse() =
mapOf<String, Int>().getOrElse("foo") { 3 }
fun isNotEmpty(l: ArrayList<Int>) =
l.iterator()?.hasNext() ?: false
fun box() = "OK"