mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-04 17:20:55 +07:00
wildcards in receiver type supported (IDEA-92699)
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
import java.util.*;
|
||||
|
||||
class MyTest2{
|
||||
{
|
||||
Comparator<? super String> comparator = String::compareToIgnoreCase;
|
||||
}
|
||||
}
|
||||
|
||||
class Test {
|
||||
void test() {
|
||||
Foo2<? extends Bar2> foo2 = Bar2::xxx;
|
||||
}
|
||||
}
|
||||
|
||||
interface Foo2<T> {
|
||||
void bar(T i, T j);
|
||||
}
|
||||
interface Bar2 {
|
||||
public void xxx(Bar2 p) default {}
|
||||
}
|
||||
Reference in New Issue
Block a user