[FIR] Implement checker for exhaustive when's in expression position
This commit is contained in:
@@ -142,7 +142,7 @@ fun getStringLength(obj : Any) : Char? {
|
||||
}
|
||||
|
||||
fun toInt(i: Int?): Int = if (i != null) i else 0
|
||||
fun illegalWhenBody(a: Any): Int = when(a) {
|
||||
fun illegalWhenBody(a: Any): Int = <!NO_ELSE_IN_WHEN!>when<!>(a) {
|
||||
is Int -> a
|
||||
is String -> a
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user