| 1 |
// Test case for Issue 1991: |
| 2 |
// https://github.com/typetools/checker-framework/issues/1991 |
| 3 |
|
| 4 |
import java.io.Serializable; |
| 5 |
|
| 6 |
@SuppressWarnings("") // Check for crashes only |
| 7 |
abstract class Issue1991Full { |
| 8 |
|
| 9 |
abstract void g(A obj); |
| 10 |
|
| 11 |
static class A { |
| 12 |
A(C<?, ?> c) {} |
| 13 |
} |
| 14 |
|
| 15 |
interface B extends C<D, E> {} |
| 16 |
|
| 17 |
interface C<X extends Comparable<? super X>, Y extends Serializable> {} |
| 18 |
|
| 19 |
public class E implements Serializable {} |
| 20 |
|
| 21 |
abstract static class D implements Comparable<D>, Serializable {} |
| 22 |
|
| 23 |
void f(B b) { |
| 24 |
g(new A(b)); |
| 25 |
} |
| 26 |
} |