[NI] Fix not-null smartcast on intersection of nullable types
#KT-28670 Fixed
This commit is contained in:
@@ -81,8 +81,8 @@ class DefinitelyNotNullType private constructor(val original: SimpleType) : Dele
|
||||
}
|
||||
}
|
||||
|
||||
fun makesSenseToBeDefinitelyNotNull(type: UnwrappedType): Boolean =
|
||||
type.canHaveUndefinedNullability() && !NullabilityChecker.isSubtypeOfAny(type)
|
||||
private fun makesSenseToBeDefinitelyNotNull(type: UnwrappedType): Boolean =
|
||||
type.canHaveUndefinedNullability() && !NullabilityChecker.isSubtypeOfAny(type)
|
||||
}
|
||||
|
||||
override val delegate: SimpleType
|
||||
|
||||
Reference in New Issue
Block a user