summaryrefslogtreecommitdiffstats
path: root/tests/new/declareParents/IllegalAdoption.java
blob: 3df00a8e105afd466ec3d456cafe47469251e3dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import org.aspectj.testing.Tester;

public class IllegalAdoption {
  
  static class A {};
  static class B extends A {};
  static class C extends B {};
  
  static class D {};
  static class E extends D {};
  
  static aspect Adoption {
	declare parents : E extends C; // should cause a compilation error
  }
}