aboutsummaryrefslogtreecommitdiffstats
path: root/tests/java5/annotations/declare/atmethodctor/TwoOnOneMember.aj
blob: abc2f0c61361bcaa3f7c8430bd4f4f81ae2d3bd1 (plain)
1
2
3
4
5
6
7
8
// trying to put two annotations onto one method and two on one ctor - should both be errors
public aspect TwoOnOneMember {
  declare @method: public void m1() : @Colored("red");
  declare @method: public void m1() : @Colored("blue");
  declare @constructor: new(int) : @Colored("red");
  declare @constructor: new(int) : @Colored("blue");
}