mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
temp revert capture open
This commit is contained in:
+15
-1
@@ -1,6 +1,19 @@
|
||||
import java.util.Comparator;
|
||||
import java.util.List;
|
||||
|
||||
class Test {
|
||||
public static final Comparator<Object> ORDER_AWARE_COMPARATOR = null;
|
||||
|
||||
public static void orderAwareSort(List<?> data) {
|
||||
sort(data, ORDER_AWARE_COMPARATOR);
|
||||
}
|
||||
|
||||
public static <T> void sort(List<T> list, Comparator<? super T> c) {}
|
||||
}
|
||||
|
||||
class FooBar<T> {
|
||||
void foo(final FooBar<?> fooBar){
|
||||
fooBar.supertype<error descr="'supertype(java.lang.Class<capture<?>>)' in 'FooBar' cannot be applied to '(java.lang.Class<java.lang.Iterable>)'">(Iterable.class)</error>;
|
||||
//fooBar.supertype(Iterable.class);
|
||||
}
|
||||
|
||||
void foo1(final FooBar<? super T> fooBar){
|
||||
@@ -13,3 +26,4 @@ class FooBar<T> {
|
||||
|
||||
void supertype(Class<? super T> superclass) {}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user