[FIR2IR] Fix CCE in FirTypeRef.canBeNull

This commit is contained in:
Mikhail Glukhikh
2020-11-18 13:33:56 +03:00
parent 91738b7f88
commit bcf6980f67
@@ -140,7 +140,8 @@ private fun ConeTypeParameterType.hasNotNullUpperBound(): Boolean {
}
val FirTypeRef.canBeNull: Boolean
get() = coneType.canBeNull
// TODO: replace with coneType (for some reason, implicit type still can arise here)
get() = coneTypeSafe<ConeKotlinType>()?.canBeNull == true
val ConeKotlinType.canBeNull: Boolean
get() {