mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-10 13:17:09 +07:00
IDEA-148389 Smart completion inserts extra colon if existing colon is on the next line
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
class Bar {
|
||||
int zoooa() {}
|
||||
int zooob() {}
|
||||
|
||||
int foo() {
|
||||
return true ? zoooa()
|
||||
:<caret> 2;
|
||||
}
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
class Bar {
|
||||
int zoooa() {}
|
||||
int zooob() {}
|
||||
|
||||
int foo() {
|
||||
return true ? zoo<caret>
|
||||
: 2;
|
||||
}
|
||||
}
|
||||
+1
@@ -724,6 +724,7 @@ public class SmartTypeCompletionTest extends LightFixtureCompletionTestCase {
|
||||
|
||||
public void testMethodColon() throws Exception { doFirstItemTest(':'); }
|
||||
public void testVariableColon() throws Exception { doFirstItemTest(':'); }
|
||||
public void testConditionalColonOnNextLine() { doFirstItemTest(':'); }
|
||||
|
||||
private void doFirstItemTest(char c) {
|
||||
configureByTestName();
|
||||
|
||||
Reference in New Issue
Block a user