mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
infer method type arguments from context in basic completion
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
public class Foo {
|
||||
|
||||
Map<String, Integer> foo() {
|
||||
return Bar.new<caret>
|
||||
}
|
||||
}
|
||||
|
||||
class Bar {
|
||||
static <T, V> HashMap<T, V> newMap() {}
|
||||
static <E> ArrayList<E> newList() {}
|
||||
}
|
||||
Reference in New Issue
Block a user