mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-09 08:09:39 +07:00
14 lines
270 B
Java
14 lines
270 B
Java
|
|
import java.io.Serializable;
|
|
|
|
class Test {
|
|
|
|
public static void main(String[] args) {
|
|
Runnable r = (Runnable & Serializable) (() -> {});
|
|
r = (Runnable & Serializable)() -> {};
|
|
r = (Runnable & I)() -> {};
|
|
System.out.println(r);
|
|
}
|
|
|
|
interface I {}
|
|
} |