[FIR] Add DNN checks
Merge-request: KT-MR-7000 Merged-by: Nikolay Lunyak <lunyak.kolya@mail.ru>
This commit is contained in:
@@ -191,3 +191,7 @@ val ConeKotlinType.canBeNull: Boolean
|
||||
}
|
||||
}
|
||||
|
||||
val FirIntersectionTypeRef.isLeftValidForDefinitelyNotNullable
|
||||
get() = leftType.coneType.let { it is ConeTypeParameterType && it.canBeNull && !it.isMarkedNullable }
|
||||
|
||||
val FirIntersectionTypeRef.isRightValidForDefinitelyNotNullable get() = rightType.coneType.isAny
|
||||
|
||||
Reference in New Issue
Block a user