mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-19 21:11:28 +07:00
testdata for EA-443617 T: PsiDiamondTypeImpl.resolveInferredTypesNoCheck
fixed by 5fc2f7118bf68a1d0b9f80bfcbbbfa768fc6bea8 GitOrigin-RevId: 93cfc70499f4f9cc5d8d4ccdbde1df985f1b313f
This commit is contained in:
committed by
intellij-monorepo-bot
parent
32194ff637
commit
205ff84754
@@ -0,0 +1,16 @@
|
||||
import java.util.*;
|
||||
|
||||
|
||||
class MyTest {
|
||||
<T> java.util.List<T> f(F.B ff) {
|
||||
return null;
|
||||
}
|
||||
|
||||
{
|
||||
this.<String>f<caret>(new F<>.B());
|
||||
}
|
||||
}
|
||||
|
||||
class F<T> {
|
||||
class B {}
|
||||
}
|
||||
@@ -68,6 +68,15 @@ public class Java8ExpressionsCheckTest extends LightDaemonAnalyzerTestCase {
|
||||
}
|
||||
}
|
||||
|
||||
public void testDiamondInsideOverloadResolution() {
|
||||
configureByFile(BASE_PATH + "/" + getTestName(false) + ".java");
|
||||
PsiFile file = getFile();
|
||||
Editor editor = getEditor();
|
||||
PsiElement element = file.findElementAt(editor.getCaretModel().getOffset());
|
||||
PsiMethodCallExpression expression = PsiTreeUtil.getParentOfType(element, PsiMethodCallExpression.class);
|
||||
assertTrue(expression.resolveMethodGenerics().isValidResult());
|
||||
}
|
||||
|
||||
public void testNestedLambdaReturnTypeCheck() {
|
||||
configure();
|
||||
PsiMethodCallExpression
|
||||
|
||||
Reference in New Issue
Block a user