Debian Codegraph @

framework/tests/all-systems/InferTypeArgsCondtionalExpression.java

raw
1 // Used to cause crash similar to the one reported in #579
2 // https://github.com/typetools/checker-framework/issues/579
3 // Issue 579 test case is in checker/tests/nullness/java8/Issue579.java
4 // A similar test case appears in checker/tests/nullness/InferTypeArgsConditionalExpression.java
5
6 class InferTypeArgsConditionalExpression {
7
8 public <T> void foo(Generic<T> real, Generic<? super T> other, boolean flag) {
9 bar(flag ? real : other);
10 }
11
12 <Q> void bar(Generic<? extends Q> param) {}
13
14 interface Generic<F> {}
15 }