lambda: missed ground type for target functional type (IDEA-149053)

This commit is contained in:
Anna Kozlova
2015-12-09 21:16:45 +01:00
parent 9697949fe1
commit 7249fd8179
3 changed files with 21 additions and 1 deletions

View File

@@ -0,0 +1,15 @@
interface I<T, R> {
R m(T t);
}
abstract class A<B> {
public abstract A<B> bar(I<Throwable, ? extends A<? extends B>> resumeFunction);
void foo(A<?> a) {
a.bar(throwable -> A.error());
}
public static final <T> A<T> error() {
return null;
}
}