forked from JavaTX/JavaCompilerCore
Remove duplicate type variables
This commit is contained in:
parent
6fb329ae1a
commit
b0c1d5d96d
@ -411,6 +411,15 @@ public class ASTToTargetAST {
|
||||
}
|
||||
}
|
||||
} while (foundInfima);
|
||||
|
||||
// Remove duplicate bounds
|
||||
for (var pair : new HashSet<>(input)) {
|
||||
if (pair instanceof PairTPHequalRefTypeOrWildcardType) {
|
||||
if (input.stream().anyMatch(p -> p instanceof PairTPHsmallerTPH && p.getLeft().equals(pair.getLeft()))) {
|
||||
input.remove(pair);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
TargetType get(TypePlaceholder tph) {
|
||||
|
Loading…
Reference in New Issue
Block a user