inline parameter: conflict if replacement would be inaccessible

This commit is contained in:
anna
2010-02-12 18:57:10 +03:00
parent 2a875daa55
commit 8331adb1d7
3 changed files with 134 additions and 87 deletions
@@ -237,6 +237,15 @@ public class InlineParameterTest extends LightCodeInsightTestCase {
}
}
public void testRefCallerParameterInCallChain() throws Exception {
try {
doTest(false);
}
catch (BaseRefactoringProcessor.ConflictsInTestsException e) {
assertEquals("Parameter initializer depends on callers parameter", e.getMessage());
}
}
private void doTest(final boolean createLocal) throws Exception {
getProject().putUserData(InlineParameterExpressionProcessor.CREATE_LOCAL_FOR_TESTS,createLocal);