mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
check type argument is in type parameter's bounds: ensure that resulted intersection type is valid
This commit is contained in:
+5
@@ -0,0 +1,5 @@
|
||||
class Test<T > {
|
||||
public static interface EventListener<V extends String> {}
|
||||
public void addListener (EventListener<<error descr="Type parameter '? extends T' is not within its bound; should extend 'java.lang.String'">? extends T</error>> listener) {}
|
||||
public void addListener1(EventListener<? super T> listener) {}
|
||||
}
|
||||
Reference in New Issue
Block a user