wildcards in receiver type supported (IDEA-92699)

This commit is contained in:
anna
2012-10-10 12:45:13 +02:00
parent e946c087fb
commit b929c5ad2f
3 changed files with 25 additions and 1 deletions

View File

@@ -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 {}
}