mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-18 08:50:57 +07:00
11 lines
247 B
Java
11 lines
247 B
Java
|
|
interface X<T> { void m(T arg); }
|
|
interface Y<T> { void m(T arg); }
|
|
interface Z<T> extends X<T>, Y<T> {}
|
|
|
|
class App {
|
|
public static void main(String[] args) {
|
|
Z<String> z = (String s) -> System.out.println(s);
|
|
z.m("Hello, world");
|
|
}
|
|
} |