framework/tests/all-systems/java8/memberref/Issue871.java
raw| 1 | // Test case for issue #871: https://github.com/typetools/checker-framework/issues/871 |
| 2 | |
| 3 | import java.nio.file.Files; |
| 4 | import java.nio.file.Path; |
| 5 | import java.util.function.Predicate; |
| 6 | |
| 7 | interface Issue871 { |
| 8 | default Iterable<Path> a() { |
| 9 | return f(Files::isRegularFile); |
| 10 | } |
| 11 | |
| 12 | Iterable<Path> f(Predicate<Path> condition); |
| 13 | } |