88f7b085e6
^KT-62069 Fixed
42 lines
1010 B
Plaintext
Vendored
42 lines
1010 B
Plaintext
Vendored
FILE: missingElse.kt
|
|
public final fun test(a: R|kotlin/Any|): R|kotlin/Unit| {
|
|
lval x: R|kotlin/Int| = when (R|<local>/a|) {
|
|
($subj$ is R|kotlin/Int|) -> {
|
|
Int(1)
|
|
}
|
|
($subj$ is R|kotlin/String|) -> {
|
|
Int(2)
|
|
}
|
|
}
|
|
|
|
lval y: R|kotlin/Int| = when (R|<local>/a|) {
|
|
else -> {
|
|
Int(1)
|
|
}
|
|
}
|
|
|
|
lval z: R|kotlin/Int| = when (R|<local>/a|) {
|
|
($subj$ is R|kotlin/Int|) -> {
|
|
Int(1)
|
|
}
|
|
($subj$ is R|kotlin/String|) -> {
|
|
Int(2)
|
|
}
|
|
else -> {
|
|
Int(3)
|
|
}
|
|
}
|
|
|
|
}
|
|
public final fun test_2(a: R|kotlin/Any|): R|kotlin/Unit| {
|
|
when (R|<local>/a|) {
|
|
($subj$ is R|kotlin/String|) -> {
|
|
Int(1)
|
|
}
|
|
($subj$ is R|kotlin/Int|) -> {
|
|
Int(2)
|
|
}
|
|
}
|
|
|
|
}
|