Debian Codegraph @

framework/tests/all-systems/java8/lambda/Issue1817.java

raw
1 // Test case for Issue 1817:
2 // https://github.com/typetools/checker-framework/issues/1817
3
4 import java.util.List;
5 import java.util.function.Consumer;
6
7 @SuppressWarnings("") // only check for crashes
8 class Issue1817 {
9 {
10 Consumer<List<?>> c = values -> values.forEach(value -> f(value));
11 }
12
13 void f(Object o) {}
14 }