inplace introduce: ensure that no refs on newly created var from expression would participate in the further processing

This commit is contained in:
anna
2011-07-12 19:12:11 +04:00
parent 2e7f8bf8bb
commit 3db3301161
4 changed files with 58 additions and 1 deletions

View File

@@ -43,6 +43,16 @@ public class InplaceIntroduceConstantTest extends AbstractInplaceIntroduceTest {
});
}
public void testConflictingConstantName() throws Exception {
doTest(new Pass<AbstractInplaceIntroducer>() {
@Override
public void pass(AbstractInplaceIntroducer inplaceIntroduceFieldPopup) {
type("BAR");
}
});
}
public void testEscapePosition() throws Exception {
doTestEscape();
}