Debian Codegraph @

framework/tests/all-systems/java8inference/Issue1397.java

raw
1 // Test case for Issue 1397.
2 // https://github.com/typetools/checker-framework/issues/1397
3
4 public class Issue1397 {
5
6 class Box<T> {}
7
8 abstract class CrashCompound {
9 abstract <T> T chk(T in);
10
11 abstract <T> T unbox(Box<T> p);
12
13 @SuppressWarnings("units")
14 void foo(Box<Boolean> bb) {
15 boolean res = false;
16 res |= chk(unbox(bb));
17 }
18 }
19 }