summaryrefslogtreecommitdiffstats
path: root/tests/java5/generics/itds/AtOverride2.aj
blob: 0a38f98c453c46170d445256974237bf4592cbf1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// 2. child specifies override and there was a parent (no error)

class Parent {
  public void method() {}
  public Object method2() {return null;}
}

class Child extends Parent {

  @Override public void method() {} // OK
  @Override public String method2() {return null;} // OK, covariance at work

}

aspect Injector { }