same_methode_and_field_name.mj 194 Bytes
Newer Older
uwgwb's avatar
uwgwb committed
1 2 3 4 5 6 7 8 9 10 11
class Foo {
    public int x;
    public int x() { return 2; }

    public static void main(String[] args) {
        Foo foo = new Foo();
        int a = foo.x();
        int b = foo.x;
    }

}