mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
new inference: incorporation of capture constraint: captured wildcard treatment
This commit is contained in:
+3
@@ -69,6 +69,9 @@ public class InferenceIncorporationPhase {
|
||||
LOG.assertTrue(parameters.length == typeArgs.length);
|
||||
for (int i = 0; i < typeArgs.length; i++) {
|
||||
PsiType aType = typeArgs[i];
|
||||
if (aType instanceof PsiCapturedWildcardType) {
|
||||
aType = ((PsiCapturedWildcardType)aType).getWildcard();
|
||||
}
|
||||
final InferenceVariable inferenceVariable = mySession.getInferenceVariable(parameters[i]);
|
||||
LOG.assertTrue(inferenceVariable != null);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user