check all upper bounds even if there are some error types in bounds
for cases like 'val l:List<Int> = id(newList())' List<???> is a lower bound for id's type parameter here
This commit is contained in:
+4
-6
@@ -64,12 +64,10 @@ public class ConstraintsUtil {
|
||||
}
|
||||
addToValuesIfDifferent(superTypeOfLowerBounds, values);
|
||||
|
||||
if (values.isEmpty()) {
|
||||
Collection<JetType> upperBounds = typeConstraintsWithoutErrorTypes.getUpperBounds();
|
||||
for (JetType upperBound : upperBounds) {
|
||||
if (trySuggestion(upperBound, typeConstraints)) {
|
||||
return Collections.singleton(upperBound);
|
||||
}
|
||||
Collection<JetType> upperBounds = typeConstraintsWithoutErrorTypes.getUpperBounds();
|
||||
for (JetType upperBound : upperBounds) {
|
||||
if (trySuggestion(upperBound, typeConstraints)) {
|
||||
return Collections.singleton(upperBound);
|
||||
}
|
||||
}
|
||||
//todo
|
||||
|
||||
Reference in New Issue
Block a user