IDEA-50631 Chaining second smart completion should suggest possible one-element arrays as qualifier

This commit is contained in:
peter
2012-03-06 20:30:18 +04:00
parent e81cb911e7
commit 8ec30835fd
5 changed files with 49 additions and 18 deletions
@@ -0,0 +1,11 @@
class Bar {
Goo getGoo();
}
class Goo {}
class Foo {
{
Bar[] ref = new Bar[1];
Goo g = ref[0].getGoo();<caret>
}
}
@@ -0,0 +1,11 @@
class Bar {
Goo getGoo();
}
class Goo {}
class Foo {
{
Bar[] ref = new Bar[1];
Goo g = <caret>
}
}
@@ -23,6 +23,7 @@ public class SecondSmartTypeCompletionTest extends LightCompletionTestCase {
public void testMethodAsQualifier() throws Throwable { doTest(); }
public void testFieldAsQualifier() throws Throwable { doTest(); }
public void testArrayRefAsQualifier() throws Throwable { doTest(); }
public void testMethodWithParams() throws Throwable { doTest(); }
public void testMergeMethods() throws Throwable { doTest(); }