equality_different_classes.invalid.mj 181 Bytes
Newer Older
uwgwb's avatar
uwgwb committed
1 2 3 4 5 6 7 8 9 10
class A {}
class B {}
class AB {
    public static void main(String[] agrs) {
        eq(new A(), new B());
    }
    public boolean eq(A a, B b) {
        return a == b; 
    } 
}