diff --git a/core/descriptors/src/org/jetbrains/jet/lang/resolve/calls/inference/ConstraintSystemImpl.java b/core/descriptors/src/org/jetbrains/jet/lang/resolve/calls/inference/ConstraintSystemImpl.java index f6859d4ed98..31534f78dca 100644 --- a/core/descriptors/src/org/jetbrains/jet/lang/resolve/calls/inference/ConstraintSystemImpl.java +++ b/core/descriptors/src/org/jetbrains/jet/lang/resolve/calls/inference/ConstraintSystemImpl.java @@ -391,6 +391,8 @@ public class ConstraintSystemImpl implements ConstraintSystem { // fun foo(i: Int) : T { ... return foo(i); } => T <: T if (isMyTypeVariable(subType) && isMyTypeVariable(superType) && JetTypeChecker.DEFAULT.equalTypes(subType, superType)) return; + //todo temporary hack KT-6320 + if (isMyTypeVariable(subType) && isMyTypeVariable(superType)) return; assert !isMyTypeVariable(subType) || !isMyTypeVariable(superType) : "The constraint shouldn't contain different type variables on both sides: " + subType + " <: " + superType;