mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
TypeConstraint: LambdaUtil.notInferredType used
Review ID: IDEA-CR-25821
This commit is contained in:
+1
-4
@@ -82,10 +82,7 @@ public final class TypeConstraint {
|
||||
@Nullable
|
||||
public TypeConstraint withInstanceofValue(@NotNull DfaPsiType type) {
|
||||
PsiType psiType = type.getPsiType();
|
||||
if (psiType instanceof PsiPrimitiveType || psiType instanceof PsiLambdaExpressionType ||
|
||||
psiType instanceof PsiMethodReferenceType) {
|
||||
return this;
|
||||
}
|
||||
if (psiType instanceof PsiPrimitiveType || LambdaUtil.notInferredType(psiType)) return this;
|
||||
|
||||
if (!checkInstanceofValue(type)) {
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user