aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs1920/github_246/ITDAspect.aj
blob: 7e4f30e3f846c00d3d6de57e9c60b43f7750ac1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
public aspect ITDAspect {
  @First
  @Second
  public void App.foo(Object parameter) { }

  @First
  public void App.foo(String parameter) { }

  @Second
  public int App.foo(int parameter) {
    return parameter + 3;
  }

  public void App.foo(String... parameters) { }

  @Second
  public int App.foo(int... parameters) {
    int sum = 0;
    for (int parameter : parameters)
      sum += parameter;
    return sum;
  }
}