mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-07 13:39:36 +07:00
lambda: void compatibility guess
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
public class Main {
|
||||
interface I<T> {
|
||||
void m(T t);
|
||||
}
|
||||
|
||||
{
|
||||
String s = "";
|
||||
I<Object> arr1 = <error descr="Incompatible return type String in lambda expression">(t) -> s</error>;
|
||||
I<Object> arr2 = (t) -> s.toString();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user