Debian Codegraph @

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

raw
1 // Test case for Issue 1399.
2 // https://github.com/typetools/checker-framework/issues/1399
3
4 public class Issue1399 {
5 static class Box<T> {
6 static <T> Box<T> box(Class<T> type) {
7 return new Box<T>();
8 }
9
10 void act(T instance) {}
11 }
12
13 abstract class Math {
14 abstract <T> Box<T> id(Box<T> in);
15
16 void foo(Math m) {
17 m.id(Box.box(Long.class)).act(10L);
18 }
19 }
20 }