Files
kotlin/compiler/testData/diagnostics/tests/unit/nullableUnit.kt
Alexander Udalov 9e5c68a8f9 Fix KotlinBuiltIns.isUnit
It didn't check type's nullability
2013-12-12 21:38:20 +04:00

6 lines
83 B
Kotlin
Vendored

fun foo() {}
val x: Unit? = <!NO_ELSE_IN_WHEN!>when<!> ("A") {
"B" -> foo()
}