mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
new inference: already calculated substitutor should be used during fresh variables creation
This commit is contained in:
+1
-1
@@ -806,7 +806,7 @@ public class InferenceSession {
|
||||
for (int i = 0; i < freshParameters.length; i++) {
|
||||
PsiTypeParameter parameter = freshParameters[i];
|
||||
final InferenceVariable var = vars.get(i);
|
||||
final PsiType lub = getLowerBound(var, PsiSubstitutor.EMPTY);
|
||||
final PsiType lub = getLowerBound(var, substitutor);
|
||||
if (lub != PsiType.NULL) {
|
||||
for (PsiClassType upperBoundType : parameter.getExtendsListTypes()) {
|
||||
if (!TypeConversionUtil.isAssignable(upperBoundType, lub)) {
|
||||
|
||||
Reference in New Issue
Block a user