framework/tests/all-systems/Issue2480.java
raw| 1 | // Test case for Issue 2480: |
| 2 | // https://github.com/typetools/checker-framework/issues/2480 |
| 3 | |
| 4 | import java.util.List; |
| 5 | |
| 6 | @SuppressWarnings({"unchecked", ""}) // check for crashes only |
| 7 | abstract class Issue2480 { |
| 8 | void testCase() { |
| 9 | for (Class<?> wrapperType : of(Character.class, Boolean.class)) {} |
| 10 | } |
| 11 | |
| 12 | abstract <E> List<E> of(E... e1); |
| 13 | } |