mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
Java: fix exception on incomplete code (IDEA-375071)
in "Unnecessary local variable" inspection GitOrigin-RevId: 3c0cf1abec084a91727e23ec19bb1acf815de9db
This commit is contained in:
committed by
intellij-monorepo-bot
parent
a499281501
commit
bb71ba1c2a
+11
@@ -232,4 +232,15 @@ abstract class RedundantLocalInFor {
|
||||
}
|
||||
|
||||
protected abstract RedundantLocalInFor getParent();
|
||||
|
||||
void incompleteLambda() {
|
||||
<error descr="Cannot infer type: lambda expression requires an explicit target type">var</error> z = s -> {
|
||||
final Object s1 = s;
|
||||
return x(s1) ;
|
||||
};
|
||||
}
|
||||
|
||||
boolean x(Object o) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user