system_shadowing_wrong_parameter_type.invalid.mj 330 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16

class SystemShadowing {
    public SystemShadowing System;
    public SystemShadowing  out;

    public void println(boolean x) { }

    public void nonstatic() {
        System.out.println(42);
    }

    public static void main(String[] args) {
        SystemShadowing x = new SystemShadowing();
        x.nonstatic();
    }
}