mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
pertinent to applicability: reject nested lambdas if they target non proper type
This commit is contained in:
+10
@@ -9,3 +9,13 @@ class Test {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
class Test1 {
|
||||
{
|
||||
Supplier<Runnable> x = foo(() -> <error descr="Multiple non-overriding abstract methods found in interface java.util.List">() -> null</error>);
|
||||
}
|
||||
|
||||
static <T> Supplier<T> foo(Supplier<java.util.List<T>> delegate) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user