Files
kotlin-fork/compiler/testData/codegen/bytecodeText/constantConditions/inlineIfFalse.kt
T
Mark Punzalan 238cc7c257 [FIR] Enable BytecodeText tests for FIR.
143 out of 767 tests (18.6%) are currently failing.
2020-09-29 10:21:21 +03:00

22 lines
333 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
package inlineInIfFalseDex
fun inlineIfFalse() {
val bar = ""
//Breakpoint!
if (inlineCall { true }) {
foo()
}
foo()
}
fun foo() {}
inline fun inlineCall(predicate: (String?) -> Boolean): Boolean {
return false
}
// 0 LINENUMBER 7
// 0 LINENUMBER 8
// 1 LINENUMBER 9