blob: 4a2c0eeb48015026694f18bb35adae27a9cf342b [file] [log] [blame]
interface OfInt extends Sink<Integer> {
default void accept(Integer i) {}
}
interface Sink<T> extends Block<T> {
}
interface Block<T> {
public void accept(T t);
}
class Hello1 implements Sink<Integer>, OfInt {}
class Hello2 implements OfInt, Sink<Integer>{}