Debian Codegraph @

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

raw
1 // Test case for Issue 1408.
2 // https://github.com/typetools/checker-framework/issues/1408
3 abstract class Issue1408 {
4 interface Demo {}
5
6 interface SubDemo extends Demo {}
7
8 abstract <S> S foo(S p1, S p2);
9
10 abstract <T extends Demo> T bar(T p2);
11
12 SubDemo demo(SubDemo p) {
13 return foo(bar(p), p);
14 }
15 }