Temporary hack for KT-6320

This commit is contained in:
Stanislav Erokhin
2014-12-02 14:56:21 +03:00
parent b55114055e
commit 99ec8952e1
@@ -391,6 +391,8 @@ public class ConstraintSystemImpl implements ConstraintSystem {
// fun <T> 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;