| 1 |
import java.util.List; |
| 2 |
|
| 3 |
public class WildcardForEach { |
| 4 |
static class Gen<T extends Gen<?>> {} |
| 5 |
|
| 6 |
void test(List<Gen<?>> x) { |
| 7 |
// This used to cause a crash in |
| 8 |
// org.checkerframework.framework.flow.CFTreeBuilder#buildAnnotatedType |
| 9 |
for (Gen<?> a : x) {} |
| 10 |
} |
| 11 |
} |