mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-09 16:39:37 +07:00
exact method refs: mark as not exact if on raw type
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import java.util.function.Consumer;
|
||||
|
||||
class InlineRef {
|
||||
<K> void foo(Consumer<K> f) {}
|
||||
|
||||
void bar(){
|
||||
foo(Descriptor::<error descr="Invalid method reference: Object cannot be converted to Descriptor">getName</error>);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
class Descriptor<Y> {
|
||||
static void getName(Descriptor d) {}
|
||||
}
|
||||
Reference in New Issue
Block a user