don't insert parameter hints on completion of method reference

This commit is contained in:
Dmitry Batrak
2017-03-24 13:18:30 +03:00
parent 93e46868cd
commit f496d9d36a
2 changed files with 25 additions and 0 deletions
@@ -106,6 +106,22 @@ public class CompletionHintsTest extends LightFixtureCompletionTestCase {
myFixture.checkResult("class C { void m() { Character.toChars(123, <caret>, ) } }");
}
public void testNoHintsForMethodReference() {
myFixture.configureByText(JavaFileType.INSTANCE, "class C {\n" +
" interface I { void i(int p); }\n" +
" void referenced(int a) {}\n" +
" void m(I lambda) {}\n" +
" void m2() { m(this::<caret>) }\n" +
"}");
complete("referenced");
myFixture.checkResultWithInlays("class C {\n" +
" interface I { void i(int p); }\n" +
" void referenced(int a) {}\n" +
" void m(I lambda) {}\n" +
" void m2() { m(this::referenced) }\n" +
"}");
}
private void showParameterInfo() {
myFixture.performEditorAction("ParameterInfo");
UIUtil.dispatchAllInvocationEvents();