inline parameter: check inner/local classes (IDEA-40703)

This commit is contained in:
anna
2010-02-11 17:56:29 +03:00
parent b26f153038
commit 20b01ce79e
8 changed files with 114 additions and 3 deletions
@@ -126,6 +126,23 @@ public class InlineParameterTest extends LightCodeInsightTestCase {
doTest(false);
}
public void testRefNewInnerAvailable() throws Exception {
doTest(false);
}
public void testRefNewInnerFromMethod() throws Exception {
try {
doTest(false);
}
catch (BaseRefactoringProcessor.ConflictsInTestsException e) {
assertEquals("Parameter initializer depends on class <b><code>Local</code></b> which is not available inside method and cannot be inlined", e.getMessage());
}
}
public void testRefNewInnerInHierarchyAvailable() throws Exception {
doTest(false);
}
public void testRefNewTopLevel() throws Exception {
doTest(false);
}