mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 00:11:26 +07:00
IDEA-179864 Autocomplete does not handle generics when method has parameters
This commit is contained in:
+19
@@ -0,0 +1,19 @@
|
||||
import java.util.*;
|
||||
|
||||
class Foo<T> {
|
||||
final <R> R to(Function<? super Foo<T>, R> converter) {
|
||||
|
||||
}
|
||||
|
||||
static {
|
||||
new Foo<Integer>().to(Bar.metho<caret>)
|
||||
}
|
||||
}
|
||||
|
||||
class Bar {
|
||||
static <T> Function<Foo<? extends T>, ?> method(List<?> scope) {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
interface Function<A,B> {}
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
import java.util.*;
|
||||
|
||||
class Foo<T> {
|
||||
final <R> R to(Function<? super Foo<T>, R> converter) {
|
||||
|
||||
}
|
||||
|
||||
static {
|
||||
new Foo<Integer>().to(Bar.<Integer>method(<caret>))
|
||||
}
|
||||
}
|
||||
|
||||
class Bar {
|
||||
static <T> Function<Foo<? extends T>, ?> method(List<?> scope) {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
interface Function<A,B> {}
|
||||
@@ -4,6 +4,6 @@ class C{
|
||||
public <T> X<T> foo(T sdhg);'
|
||||
{
|
||||
|
||||
X<C> dsd = foo(<caret>)
|
||||
X<C> dsd = foo(<caret>);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user