move instance method should qualify field access if there is a parameter with the same name (IDEA-43009)

This commit is contained in:
anna
2010-01-22 13:14:34 +03:00
parent bce7f8b69b
commit 04130b5cb1
6 changed files with 65 additions and 1 deletions
@@ -57,6 +57,14 @@ public class MoveInstanceMethodTest extends LightCodeInsightTestCase {
doTest(true, 0);
}
public void testQualifyFieldAccess() throws Exception {
doTest(false, 0);
}
public void testStripFieldQualifier() throws Exception {
doTest(false, 0);
}
private void doTest(boolean isTargetParameter, final int targetIndex) throws Exception {
doTest(isTargetParameter, targetIndex, null);
}