wrong_ident_type_return.invalid.mj 196 Bytes
Newer Older
ufebl's avatar
ufebl committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
class Main {
    public static void main(String[] arguments) {
        A a = new A();
        A a2 = a.foo();
    }
}

class A {
    public A foo() {
        return new B();
    }
}

class B {

}