mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-11 11:36:59 +07:00
13 lines
264 B
Java
13 lines
264 B
Java
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();
|
|
}
|
|
|
|
}
|