Debian Codegraph @

framework/tests/all-systems/IntersectionTypes.java

raw
1 // Test case for Issue 247:
2 // https://github.com/typetools/checker-framework/issues/247
3
4 interface Foo {}
5
6 interface Bar {}
7
8 class Baz implements Foo, Bar {}
9
10 class IntersectionTypes {
11 void foo() {
12 Baz baz = new Baz();
13 call(baz);
14 }
15
16 <T extends Foo & Bar> void call(T p) {}
17 }