mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
applicability: get call expr from anonymous class (IDEA-184965)
This commit is contained in:
+3
@@ -196,6 +196,9 @@ public class InferenceSession {
|
||||
if (parent instanceof PsiCall) {
|
||||
return MethodCandidateInfo.getCurrentMethod(((PsiCall)parent).getArgumentList());
|
||||
}
|
||||
if (parent instanceof PsiAnonymousClass) {
|
||||
return getCurrentProperties(parent.getParent());
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
abstract class Test {
|
||||
|
||||
public <T> Test(final T t, int i) { }
|
||||
|
||||
{
|
||||
Test action = new Test<error descr="'Test(T, int)' in 'Test' cannot be applied to '(java.lang.String, java.lang.String)'">("abc", "name")</error> {};
|
||||
}
|
||||
}
|
||||
+1
@@ -175,6 +175,7 @@ public class GraphInferenceHighlightingTest extends LightDaemonAnalyzerTestCase
|
||||
public void testErasureOfReturnTypeIffUncheckedConversionWasNecessaryDuringApplicabilityCheckOnly2() { doTest(); }
|
||||
public void testTwoDifferentParameterizationCheckWithInterfaceTypeArguments() { doTest(); }
|
||||
public void testNonGenericInnerClassOfGenericsOuterInReturnType() { doTest(); }
|
||||
public void testInferredApplicabilityForAnonymousClassConstructor() { doTest(); }
|
||||
public void testNonGenericInnerClassOfGenericsOuterWithWildcardsInReturnType() { doTest(); }
|
||||
public void testUncheckedConversionDuringProperTypeExpressionConstraintResolution() { doTest(); }
|
||||
//public void _testAssignabilityOfStandaloneExpressionsDuringApplicabilityCheck() { doTest(); }
|
||||
|
||||
Reference in New Issue
Block a user