mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-10 01:09:46 +07:00
lambda: missed ground type for target functional type (IDEA-149053)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user