FIR tree. Make intersection type part-types non-null

This commit is contained in:
Simon Ogorodnik
2022-02-11 21:37:45 +03:00
committed by Space
parent 9c727e6d5d
commit 857fe985b2
5 changed files with 14 additions and 14 deletions
@@ -1753,8 +1753,8 @@ open class RawFirBuilder(
is KtIntersectionType -> FirIntersectionTypeRefBuilder().apply {
this.source = source
isMarkedNullable = isNullable
leftType = unwrappedElement.getLeftTypeRef()?.toFirOrErrorType()
rightType = unwrappedElement.getRightTypeRef()?.toFirOrErrorType()
leftType = unwrappedElement.getLeftTypeRef().toFirOrErrorType()
rightType = unwrappedElement.getRightTypeRef().toFirOrErrorType()
}
null -> FirErrorTypeRefBuilder().apply {
this.source = source