mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 00:11:26 +07:00
method refs: do not warn about type args over raw types, non parameterized methods (IDEA-92851)
This commit is contained in:
+17
@@ -0,0 +1,17 @@
|
||||
class Test<T> {
|
||||
void foo(String p) {}
|
||||
<U> void foo1(String p) {}
|
||||
static void foo2(String p) {}
|
||||
static <U> void foo3(String p) {}
|
||||
void test() {
|
||||
Test test = new Test<String>();
|
||||
BlahBlah<String> blahBlah = test::<String>foo;
|
||||
BlahBlah<String> blahBlah1 = test::<String>foo1;
|
||||
BlahBlah<String> blahBlah2 = test::<String>foo2;
|
||||
BlahBlah<String> blahBlah3 = test::<String>foo3;
|
||||
}
|
||||
}
|
||||
|
||||
interface BlahBlah<T> {
|
||||
void bar(T i);
|
||||
}
|
||||
Reference in New Issue
Block a user