new inference: infer exceptions for inner lambda body calls (IDEA-134225)

This commit is contained in:
Anna Kozlova
2014-12-17 20:13:46 +01:00
parent ef013da019
commit 7343c62b7e
3 changed files with 29 additions and 2 deletions
@@ -0,0 +1,20 @@
import java.io.IOException;
import java.util.Optional;
class Test {
interface Extractor<T> {
T extractData() throws IOException;
}
public static <T> T query(Extractor<T> rse) {
return null;
}
static {
final Optional<String> query = query(() -> {
final String type = Optional.<String>empty().orElseThrow(null);
return null;
});
}
}