877e583a96
#KT-31999 Fixed
8 lines
172 B
Kotlin
Vendored
8 lines
172 B
Kotlin
Vendored
// PROBLEM: none
|
|
fun test(str: String?): String? {
|
|
val <caret>some = str ?: throw Exception()
|
|
return when (some) {
|
|
"some" -> some
|
|
else -> ""
|
|
}
|
|
} |