mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-01 02:38:59 +07:00
lambda: infer lambda param types in method call, return statement context
This commit is contained in:
@@ -9,4 +9,10 @@ class Foo {
|
||||
I ii1 = (final int k)->{
|
||||
<error descr="Incompatible types. Found: 'int', required: 'java.lang.String'">String s = k;</error>
|
||||
};
|
||||
|
||||
void bazz() {
|
||||
bar((String s) -> {
|
||||
System.out.println(s);});
|
||||
}
|
||||
void bar(I i){}
|
||||
}
|
||||
Reference in New Issue
Block a user