Debian Codegraph @

framework/tests/all-systems/Issue1043.java

raw
1 // Test case for Issue 1043:
2 // https://github.com/typetools/checker-framework/issues/1043
3
4 class Issue1043 {
5 <T> boolean foo(Class<T> p) {
6 return true;
7 }
8
9 void bar(Object p) {}
10
11 void baz() {
12 bar(foo(this.getClass()) ? "a" : "b");
13 }
14 }