mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-16 16:02:16 +07:00
method ref completion: complete receiver typed method ref without param in valid lambda context (IDEA-140730)
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
import java.util.List;
|
||||
|
||||
class MyTest {
|
||||
|
||||
void m(List<Person> l) {
|
||||
l.stream().map(Person::getName)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
interface Person {
|
||||
String getName();
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
import java.util.List;
|
||||
|
||||
class MyTest {
|
||||
|
||||
void m(List<Person> l) {
|
||||
l.stream().map(<caret>)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
interface Person {
|
||||
String getName();
|
||||
}
|
||||
+4
@@ -123,6 +123,10 @@ public class SmartType18CompletionTest extends LightFixtureCompletionTestCase {
|
||||
doTest(false);
|
||||
}
|
||||
|
||||
public void testSimpleMethodReference() throws Exception {
|
||||
doTest(true);
|
||||
}
|
||||
|
||||
private void doTest() {
|
||||
doTest(true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user