| 1 |
// Test case for Issue #1049 |
| 2 |
// https://github.com/typetools/checker-framework/issues/1049 |
| 3 |
public class Issue1049 { |
| 4 |
interface Gen<T extends Gen<T>> { |
| 5 |
T get(); |
| 6 |
} |
| 7 |
|
| 8 |
@SuppressWarnings("known.nonnull") |
| 9 |
void bar(Gen<?> g) { |
| 10 |
Gen<?> l = g.get() != null ? g.get() : g; |
| 11 |
} |
| 12 |
} |