Analysis API: add test covering get missing when branches
Also fix FIR implementation to generate boolean branches in the same order as FE1.0.
This commit is contained in:
committed by
Ilya Kirillov
parent
8ba2e4d221
commit
2c2851af6e
+10
@@ -0,0 +1,10 @@
|
||||
sealed class Foo {
|
||||
object A : Foo()
|
||||
class B(val i: Int) : Foo()
|
||||
}
|
||||
|
||||
fun test(e: Foo) {
|
||||
<caret>when (e) {
|
||||
else -> {}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user