Files
Vladimir Dolzhenko 2713f97c5c [kotlin] String literal within if-clause is subject to be re-analyzed
#KTIJ-25528
#KTIJ-20783 Fixed

GitOrigin-RevId: 82db65b3450c1bdb1a031863853a4563273003db
2023-05-19 23:57:14 +00:00

10 lines
181 B
Kotlin

// OUT_OF_CODE_BLOCK: FALSE
// ENABLE-WARNINGS
fun foo(count: Int): String {
return if (count == 0) {
"still zero"
} else {
"no longer zero!<caret>"
}
}