mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
pertinent to applicability: reject nested lambdas if they target non proper type
This commit is contained in:
+1
-1
@@ -1,4 +1,4 @@
|
||||
<error descr="Multiple non-overriding abstract methods found">@FunctionalInterface</error>
|
||||
<error descr="Multiple non-overriding abstract methods found in interface Test">@FunctionalInterface</error>
|
||||
interface Test {
|
||||
void foo();
|
||||
void bar();
|
||||
|
||||
+1
-1
@@ -36,7 +36,7 @@ class Test2 {
|
||||
}
|
||||
|
||||
{
|
||||
F f = <error descr="Multiple non-overriding abstract methods found">() -> g()</error>;
|
||||
F f = <error descr="Multiple non-overriding abstract methods found in interface Test2.F">() -> g()</error>;
|
||||
}
|
||||
|
||||
void g() {}
|
||||
|
||||
Reference in New Issue
Block a user