mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-18 00:20:54 +07:00
12 lines
328 B
Java
12 lines
328 B
Java
interface Func<TIn, TOut>{
|
|
TOut run(TIn in);
|
|
}
|
|
|
|
|
|
class Main {
|
|
|
|
public static void main(final String[] args) {
|
|
Func<Integer, String> func = Integer::<error descr="Reference to 'toString' is ambiguous, both 'toString(int)' and 'toString()' match">toString</error>;
|
|
System.out.println(func.run(6));
|
|
}
|
|
} |