Files
kotlin-fork/compiler/testData/codegen/bytecodeText/lineNumbers/ifConsts.kt
T
Mikhail Glukhikh ac50433e17 Fix failing bytecode text test
In this commit I moved IGNORE_BACKEND_FIR to the end or deleted it
when it was applicable, to preserve correct line numbers
2020-09-29 19:16:42 +03:00

36 lines
448 B
Kotlin
Vendored

fun cond() = false
fun bar() {}
fun foo() {
if (cond()) {
bar()
} else if (true) {
bar()
} else {
bar()
}
if (false) {
bar()
} else if (true) {
bar()
} else {
bar()
}
if (true) {
bar()
} else if (false) {
bar()
} else {
bar()
}
}
// 1 LINENUMBER 6
// 1 LINENUMBER 8
// 1 LINENUMBER 14
// 1 LINENUMBER 16
// 1 LINENUMBER 22