Debian Codegraph @

checker/tests/nullness/java8/lambda/Issue1864.java

raw
1 // Test case for Issue 1864:
2 // https://github.com/typetools/checker-framework/issues/1864
3
4 import java.util.List;
5 import java.util.function.Supplier;
6
7 abstract class Issue1864 {
8 interface A {}
9
10 abstract <T extends A> List<T> g();
11
12 abstract void h(Supplier<Iterable<A>> s);
13
14 void f() {
15 Iterable<A> xs = g();
16 h(() -> xs);
17 }
18 }