framework/tests/all-systems/Issue988.java
raw| 1 | // Test case for Issue 988: |
| 2 | // https://github.com/typetools/checker-framework/issues/988 |
| 3 | |
| 4 | abstract class Issue988 { |
| 5 | abstract Class getRawClass(); |
| 6 | |
| 7 | abstract Class<?> getGenericClass(); |
| 8 | |
| 9 | Class<?> getWithArg(boolean generic) { |
| 10 | return generic ? getGenericClass() : getRawClass(); |
| 11 | } |
| 12 | } |