Files
Vladimir Dolzhenko 90cda71e63 [kotlin] String literal within val/var declaration should be re-analyzed
#KTIJ-25528
#KTIJ-20783 Fixed

GitOrigin-RevId: 4dbc9fceb7f45bd9450720f14286dfd90fbef8c2
2023-06-02 15:28:36 +00:00

10 lines
170 B
Kotlin

// OUT_OF_CODE_BLOCK: FALSE
// ENABLE-WARNINGS
fun foo(s: String): Int {
return when (s) {
"hello" -> 0
"<caret>ello" -> 1
else -> 42
}
}