diff --git a/core/descriptors/src/org/jetbrains/kotlin/types/TypeProjectionBase.java b/core/descriptors/src/org/jetbrains/kotlin/types/TypeProjectionBase.java index b6a84fe6494..cefaff484d3 100644 --- a/core/descriptors/src/org/jetbrains/kotlin/types/TypeProjectionBase.java +++ b/core/descriptors/src/org/jetbrains/kotlin/types/TypeProjectionBase.java @@ -46,7 +46,11 @@ public abstract class TypeProjectionBase implements TypeProjection { @Override public int hashCode() { int result = getProjectionKind().hashCode(); - result = 31 * result + (isStarProjection() ? 17 : getType().hashCode()); + if (TypeUtils.noExpectedType(getType())) { + result = 31 * result +19; + } else { + result = 31 * result + (isStarProjection() ? 17 : getType().hashCode()); + } return result; } }