IDEA-179864 Autocomplete does not handle generics when method has parameters

This commit is contained in:
peter
2017-10-04 16:12:59 +02:00
parent 32f0a9f3ef
commit 969a93d5a8
9 changed files with 54 additions and 23 deletions
@@ -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> {}
@@ -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>);
}
}