mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-10 18:09:38 +07:00
14 lines
347 B
Java
14 lines
347 B
Java
|
|
import java.io.Serializable;
|
|
|
|
class Test {
|
|
|
|
public static void main(String[] args) {
|
|
Runnable r = (Runnable & Serializable) (() -> {});
|
|
r = (Runnable & Serializable)() -> {};
|
|
r = (<warning descr="Casting '() -> {}' to 'Runnable & I' is redundant">Runnable & I</warning>)() -> {};
|
|
System.out.println(r);
|
|
}
|
|
|
|
interface I {}
|
|
} |