Debian Codegraph @

framework/tests/all-systems/java8inference/Issue1331.java

raw
1 // Test case for Issue 1331.
2 // https://github.com/typetools/checker-framework/issues/1331
3
4 import java.util.List;
5 import java.util.stream.Collectors;
6
7 @SuppressWarnings("") // check for crashes
8 class Issue1331 {
9 List<Long> ll;
10 long result = getOnlyElement(ll.stream().collect(Collectors.toSet()));
11
12 static <T> T getOnlyElement(Iterable<T> iterable) {
13 return null;
14 }
15 }