aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs1920/github_246/ITDAspect.aj
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs1920/github_246/ITDAspect.aj')
-rw-r--r--tests/bugs1920/github_246/ITDAspect.aj10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/bugs1920/github_246/ITDAspect.aj b/tests/bugs1920/github_246/ITDAspect.aj
index fffef1651..7e4f30e3f 100644
--- a/tests/bugs1920/github_246/ITDAspect.aj
+++ b/tests/bugs1920/github_246/ITDAspect.aj
@@ -10,4 +10,14 @@ public aspect ITDAspect {
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;
+ }
}