Files
kotlin-fork/compiler/testData/codegen/box/boxingOptimization/kt15871.kt
T
2019-11-19 11:00:09 +03:00

6 lines
202 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
fun box() =
if (getAndCheck({ 42 }, { 42 })) "OK" else "fail"
inline fun <T> getAndCheck(getFirst: () -> T, getSecond: () -> T) =
getFirst() == getSecond()