Files
kotlin-fork/idea/testData/inspectionsLocal/whenWithOnlyElse/subjectVariable/blockElse/noReference.kt
T
2019-05-29 15:40:10 +07:00

14 lines
187 B
Kotlin
Vendored

fun test() {
when<caret> (val a = create()) {
else -> {
use("")
foo()
}
}
}
fun create(): String = ""
fun use(s: String) {}
fun foo() {}