// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
public class IFI {
    public static interface X {
    }
    @FunctionalInterface
    public static interface Y {
        public void m();
    }
    public static void test(Object o) {
        System.out.println(o.getClass().getName());
    }
    public static void test(Y o) {
        System.out.println(o.getClass().getName());
    }
    public static void main(String[] args) {
        test(new X() {
                     }
        );
        test(() -> { });
    }
}
