EmptyIntersectionTypeChecker: fix typo in variable name
This commit is contained in:
committed by
Space Team
parent
d5c8d9fecc
commit
e9ea66b9f1
+3
-3
@@ -98,13 +98,13 @@ internal object EmptyIntersectionTypeChecker {
|
||||
typeCheckerState, secondType.lowerBoundIfFlexible(), firstTypeConstructor
|
||||
).singleOrNull()
|
||||
|
||||
val anyInference = firstTypeConstructor.isInterface() || secondTypeConstructor.isInterface()
|
||||
val atLeastOneInterface = firstTypeConstructor.isInterface() || secondTypeConstructor.isInterface()
|
||||
|
||||
// Two classes can't have a common subtype if neither is a subtype of another
|
||||
if (superTypeByFirstConstructor == null && superTypeBySecondConstructor == null && !anyInference)
|
||||
if (superTypeByFirstConstructor == null && superTypeBySecondConstructor == null && !atLeastOneInterface)
|
||||
return EmptyIntersectionTypeInfo(EmptyIntersectionTypeKind.MULTIPLE_CLASSES, firstType, secondType)
|
||||
|
||||
if (anyInference) {
|
||||
if (atLeastOneInterface) {
|
||||
val incompatibleSupertypes = getIncompatibleSuperTypes(firstType, secondType)
|
||||
if (incompatibleSupertypes != null) {
|
||||
return EmptyIntersectionTypeInfo(EmptyIntersectionTypeKind.INCOMPATIBLE_SUPERTYPES, *incompatibleSupertypes)
|
||||
|
||||
Reference in New Issue
Block a user