summaryrefslogtreecommitdiff
path: root/output/negative/WrongAllocate-error1.java
blob: 072ac98340455ac84d19e0e54d29c3543369327b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
class WrongAllocate {
    public static void main(String[] z) {
        A a ;
        B b ;
        a = new B() ;
        b = new A() ;
        System.out.println(12) ;
    }
}

class A {

    public int get_tt() {
        return 32 ;
    }

}

class B extends A {

    int useless ;

}