78c9bbcc0d
Consider lower `Nothing` constraint non-proper only if there is a dependant not analyzed postponed atom. Early completion to `Nothing` provides data flow info for smart casts. KT-35668 Fixed
10 lines
196 B
Kotlin
Vendored
10 lines
196 B
Kotlin
Vendored
// !WITH_NEW_INFERENCE
|
|
val test: Int = <!NI;TYPE_MISMATCH, NI;TYPE_MISMATCH!>if (true) {
|
|
when (2) {
|
|
1 -> 1
|
|
else -> <!OI;NULL_FOR_NONNULL_TYPE!>null<!>
|
|
}
|
|
}
|
|
else {
|
|
2
|
|
}<!> |