mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-24 17:51:09 +07:00
10 lines
296 B
Java
10 lines
296 B
Java
import java.util.*;
|
|
|
|
class Test {
|
|
static <E extends Exception, T> void foo(List<T> l, Class<E> ec) throws E {
|
|
}
|
|
|
|
public static void main(String[] s) {
|
|
foo(new ArrayList(), RuntimeException.class); //IDEA says we have an unhandled exception here
|
|
}
|
|
} |