inline parameter: conflict for write access (IDEA-40733); exceptions are thrown if they are found in initializer (IDEA-40732 )

This commit is contained in:
anna
2010-02-02 19:49:02 +03:00
parent 5a60b9500f
commit 9b271b5bd7
5 changed files with 119 additions and 0 deletions
@@ -139,6 +139,19 @@ public class InlineParameterTest extends LightCodeInsightTestCase {
}
}
public void testRefArrayAccess() throws Exception {
try {
doTest(false);
}
catch (BaseRefactoringProcessor.ConflictsInTestsException e) {
assertEquals("Parameter initializer depends on value which is not available inside method and cannot be inlined", e.getMessage());
}
}
public void testHandleExceptions() throws Exception {
doTest(false);
}
private void doTestCannotFindInitializer() throws Exception {
try {
doTest(false);