pull up: erasure type parameters or try to substitute (IDEA-53490)

This commit is contained in:
anna
2010-04-14 14:08:31 +04:00
parent a03abdc55a
commit d95d359eeb
10 changed files with 90 additions and 22 deletions

View File

@@ -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());