aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs150/pr99191/pr99191_6.java
blob: 4f176bb66c7328d2d91cbed1666a592be62f3766 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
@interface Annotation{}
aspect B {
	declare @constructor : C.new(String) : @Annotation; // shouldn't have any errors
	declare @constructor : *.new(int) : @Annotation; // shouldn't have any errors
	declare @constructor : *.new(int) : @Annotation; // already get a warning for this, don't want an error saying method doesn't exist
}

class C {
	@Annotation public C(int i) {
	}
}

aspect D {
	public C.new(String s){}
}