Debian Codegraph @

framework/tests/all-systems/Issue691.java

raw
1 // Test case for Issue 691:
2 // https://github.com/typetools/checker-framework/issues/691
3
4 interface MyInterface<T> {}
5
6 // This code causes greatestLowerBound in the qualifier hierarchy to be executed, which results
7 // in a crash if the default implementation isn't correct for a given checker. A checker could
8 // issue a valid type checking error for this code, so suppress any warnings.
9 @SuppressWarnings("")
10 class Issue285<T> implements MyInterface<T> {
11 MyInterface<?> mi = new Issue285<>();
12 }