framework/tests/all-systems/Issue1991.java
raw| 1 | // Test case for Issue 1991: |
| 2 | // https://github.com/typetools/checker-framework/issues/1991 |
| 3 | |
| 4 | @SuppressWarnings("") // Check for crashes only |
| 5 | class Issue1991 { |
| 6 | interface Comp<T extends Comp<T>> {} |
| 7 | |
| 8 | interface C<X extends Comp<? super X>> {} |
| 9 | |
| 10 | class D implements Comp<D> {} |
| 11 | |
| 12 | void f(C<D> p) { |
| 13 | C<?> x = p; |
| 14 | } |
| 15 | } |