mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-07 13:39:36 +07:00
new inference: overload resolution for SAM return type for implicit lambda should be ignored
This commit is contained in:
@@ -30,8 +30,8 @@ class ReturnTypeCompatibility {
|
||||
|
||||
public static void main(String[] args) {
|
||||
call((String i)->{ return i;});
|
||||
call(<error descr="Cyclic inference">i->{ return i;}</error>);
|
||||
call(<error descr="Cyclic inference">i->""</error>);
|
||||
call(i->{ return i;});
|
||||
call(i->"");
|
||||
call((<error descr="Incompatible parameter types in lambda expression">int i</error>)->{ return i;});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user