8 lines
117 B
Kotlin
Vendored
8 lines
117 B
Kotlin
Vendored
// !LANGUAGE: +VariableDeclarationInWhenSubject
|
|
|
|
fun foo(): Any = 42
|
|
|
|
fun test() {
|
|
when (val x = foo()) {
|
|
}
|
|
} |