mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 07:20:53 +07:00
pull up: erasure type parameters or try to substitute (IDEA-53490)
This commit is contained in:
@@ -67,6 +67,18 @@ public class PullUpTest extends LightCodeInsightTestCase {
|
||||
doTest(new MemberDescriptor ("get", PsiMethod.class));
|
||||
}
|
||||
|
||||
public void testTypeParamErasure() throws Exception {
|
||||
doTest(new MemberDescriptor("f", PsiField.class));
|
||||
}
|
||||
|
||||
public void testTypeParamSubst() throws Exception {
|
||||
doTest(new MemberDescriptor("f", PsiField.class));
|
||||
}
|
||||
|
||||
public void testTypeArgument() throws Exception {
|
||||
doTest(new MemberDescriptor("f", PsiField.class));
|
||||
}
|
||||
|
||||
private void doTest(MemberDescriptor... membersToFind) throws Exception {
|
||||
configureByFile(BASE_PATH + getTestName(false) + ".java");
|
||||
PsiElement elementAt = getFile().findElementAt(getEditor().getCaretModel().getOffset());
|
||||
|
||||
Reference in New Issue
Block a user