aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs170/pr382189/covbug/pj/Foo.java
blob: d8e1721b2cb199f36ec95d584865ffabd2411ade (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import java.util.List;

class A extends SuperA<String> {
  public B getSomeB(SuperB<String> b) { return null; }
 public static void main(String []argv) {
    A a = new A();
	System.out.println(a.getSomeB(null));
  }
}

class B extends SuperB<String> { 
}

abstract class SuperA<T> {
	public abstract SuperB<T> getSomeB(SuperB<T> b);
}

class SuperB<T> { }

/*
public privileged aspect A_ITD {
	declare parents: A extends SuperA<String>;
	
	public B A.getSomeB(SuperB<String> b) { return null; }
}
*/