mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-18 04:21:24 +07:00
[java-highlighting] IDEA-359187 LVTI: 'lambda expression requires an explicit target type' not highlighted as error when in parenthesis
GitOrigin-RevId: 248072c38aeaf7f05b088c04bc435ecd0e940dd8
This commit is contained in:
committed by
intellij-monorepo-bot
parent
e3d5629229
commit
3ec30c1c1b
@@ -16,7 +16,7 @@ class Main {
|
||||
var zz = <error descr="Variable 'zz' might not have been initialized">zz</error>;
|
||||
zz.<error descr="Cannot resolve method 'hashCode()'">hashCode</error>();
|
||||
}
|
||||
|
||||
|
||||
static int baz(Object o) {return 42;}
|
||||
|
||||
private static void localVariableType() {
|
||||
@@ -35,6 +35,7 @@ class Main {
|
||||
int el = e.compareTo("");
|
||||
|
||||
<error descr="Cannot infer type: lambda expression requires an explicit target type">var</error> f = () -> "hello";
|
||||
<error descr="Cannot infer type: lambda expression requires an explicit target type">var</error> fp = (() -> "hello");
|
||||
<error descr="Cannot infer type: method reference requires an explicit target type">var</error> m = Main::localVariableDeclaration;
|
||||
<error descr="Cannot infer type: variable initializer is 'null'">var</error> g = null;
|
||||
var runnable = true ? <error descr="Lambda expression not expected here">() -> {}</error> : <error descr="Lambda expression not expected here">() -> {}</error>;
|
||||
|
||||
Reference in New Issue
Block a user