mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 00:11:26 +07:00
method refs: ensure raw substitutor is not used for second search case to build return type constraints (IDEA-165239)
This commit is contained in:
+19
@@ -0,0 +1,19 @@
|
||||
|
||||
class Test {
|
||||
public interface Copier<TypeT> {
|
||||
TypeT m(TypeT value);
|
||||
}
|
||||
|
||||
public static class A<PhantomT> {
|
||||
public <OtherT extends A<?>> OtherT copy() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
static <TypeT> void foo(TypeT value, Copier<TypeT> copier) {}
|
||||
|
||||
public static void foo() {
|
||||
A<?> val = new A<>();
|
||||
foo(val, A::copy);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user