Debian Codegraph @

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

raw
1 // Test case for Issue 1864:
2 // https://github.com/typetools/checker-framework/issues/1864
3
4 class Issue1864b {
5 interface Supplier {
6 Object get();
7 }
8
9 Supplier foo() {
10 Object foo = new Object();
11 return () -> foo;
12 }
13 }