mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-02 03:07:47 +07:00
isApplicable for raw qualifiers: it's enough to erasure left type, then right type should be able to assign there, so method reference type/lambda type won't be lost during erasure (IDEA-144547)
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
class Test<T, K> {
|
||||
|
||||
interface IA {
|
||||
void a();
|
||||
}
|
||||
|
||||
interface IB<T> {
|
||||
void b(T t);
|
||||
}
|
||||
|
||||
void onEntry(IA i){
|
||||
System.out.println(i);
|
||||
}
|
||||
void onEntry(IB<Map<T, K>> i){
|
||||
System.out.println(i);
|
||||
}
|
||||
|
||||
void foo(Test t) {
|
||||
t.onEntry(this::fooBar);
|
||||
}
|
||||
|
||||
private void fooBar() {}
|
||||
}
|
||||
Reference in New Issue
Block a user