new inference: primitive types processing: ignore eq constraint by the spec

This commit is contained in:
Anna Kozlova
2014-02-03 19:35:37 +04:00
parent 5b40000bd4
commit 0e875b2959
@@ -341,7 +341,8 @@ public class InferenceSession {
}
private static boolean hasPrimitiveWrapperBound(InferenceVariable inferenceVariable) {
for (InferenceBound inferenceBound : InferenceBound.values()) {
final InferenceBound[] boundTypes = {InferenceBound.UPPER, InferenceBound.LOWER};
for (InferenceBound inferenceBound : boundTypes) {
final List<PsiType> bounds = inferenceVariable.getBounds(inferenceBound);
for (PsiType bound : bounds) {
if (PsiPrimitiveType.getUnboxedType(bound) != null) {