Fix KotlinBuiltIns.isUnit

It didn't check type's nullability
This commit is contained in:
Alexander Udalov
2013-12-11 17:55:06 +04:00
parent 2892907947
commit 9e5c68a8f9
5 changed files with 25 additions and 10 deletions
@@ -0,0 +1,5 @@
fun foo() {}
val x: Unit? = <!NO_ELSE_IN_WHEN!>when<!> ("A") {
"B" -> foo()
}