mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-10 18:09:38 +07:00
lambda: inference param types for assignment and cast context
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
interface I {
|
||||
void m(int i);
|
||||
}
|
||||
|
||||
class Foo {
|
||||
I ii = (@<error descr="'@Override' not applicable to type use">Override</error> final int k)->{
|
||||
int j = k;
|
||||
};
|
||||
I ii1 = (final int k)->{
|
||||
<error descr="Incompatible types. Found: 'int', required: 'java.lang.String'">String s = k;</error>
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user