IDEA-CR-2144: extract method: test expression inside field group

GitOrigin-RevId: bea8f280aa73964b94f4bd66d4e542393f2a6ea7
This commit is contained in:
Alexandr Suhinin
2020-07-07 12:25:30 +00:00
committed by intellij-monorepo-bot
parent 8d62fcfecb
commit 2110bac037
3 changed files with 14 additions and 0 deletions
@@ -0,0 +1,3 @@
public class Test {
int a = 1 + 1, b = <selection>2 * 2</selection>, c = 3 - 3;
}
@@ -0,0 +1,7 @@
public class Test {
int a = 1 + 1, b = newMethod(), c = 3 - 3;
private int newMethod() {
return 2 * 2;
}
}
@@ -217,6 +217,10 @@ public class ExtractMethodNewTest extends LightJavaCodeInsightTestCase {
doTest();
}
public void testFieldGroupAnchor2() throws Exception {
doTest();
}
public void testSCR27887() throws Exception {
doTest();
}