Files
kotlin-fork/compiler/testData/diagnostics/tests/regressions/Jet169.kt
T

8 lines
266 B
Kotlin
Vendored

fun set(<!UNUSED_PARAMETER!>key<!> : String, <!UNUSED_PARAMETER!>value<!> : String) {
val a : String? = ""
when (a) {
"" -> <!DEBUG_INFO_SMARTCAST!>a<!>.get(0)
is String, is Any -> <!DEBUG_INFO_SMARTCAST!>a<!>.compareTo("")
else -> a.toString()
}
}