From e9ea66b9f17a5e1dd2c4eeafa4a57e154780bebf Mon Sep 17 00:00:00 2001 From: Mikhail Glukhikh Date: Thu, 24 Nov 2022 17:21:37 +0100 Subject: [PATCH] EmptyIntersectionTypeChecker: fix typo in variable name --- .../kotlin/resolve/checkers/EmptyIntersectionTypeChecker.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/compiler.common/src/org/jetbrains/kotlin/resolve/checkers/EmptyIntersectionTypeChecker.kt b/core/compiler.common/src/org/jetbrains/kotlin/resolve/checkers/EmptyIntersectionTypeChecker.kt index 326fd9bcdd4..a429b0130e1 100644 --- a/core/compiler.common/src/org/jetbrains/kotlin/resolve/checkers/EmptyIntersectionTypeChecker.kt +++ b/core/compiler.common/src/org/jetbrains/kotlin/resolve/checkers/EmptyIntersectionTypeChecker.kt @@ -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)