Debian Codegraph @

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

raw
1 // Test case for Issue 1897:
2 // https://github.com/typetools/checker-framework/issues/1897
3
4 import java.util.function.Function;
5
6 class Issue1897 {
7 Issue1897() {
8 final int length = 1;
9 takesLambda(s -> length);
10 }
11
12 static void takesLambda(Function<String, Integer> function) {}
13 }