mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-31 19:50:55 +07:00
(cherry picked from commit e3acb5c8848ae13da6f28c1593b432e27c81cd14) IJ-CR-154794 GitOrigin-RevId: 881dcb8023063fcdd7116191c662b180986d4f93
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()' and 'toString(int)' match">toString</error>;
|
|
System.out.println(func.run(6));
|
|
}
|
|
} |