Files
kotlin-fork/compiler/testData/codegen/box/boxingOptimization/taintedValues.kt
T
Mark Punzalan 5afab1ac2b [FIR] FIR2IR: Populate calls with type arguments and function type
parameters with bounds/supertypes.
2019-11-25 09:37:47 +03:00

12 lines
249 B
Kotlin
Vendored

// 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"