Fix VerifyError for 'when' of type 'Unit?'
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
fun foo() {}
|
||||
|
||||
fun box(): String {
|
||||
when ("A") {
|
||||
"B" -> null
|
||||
else -> foo()
|
||||
}
|
||||
|
||||
foo()
|
||||
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user