blob: e7effecece7ab064ced8d17b1f9337b9fc27ad0e (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
package com.test;
public aspect OptionAspect {
interface IBadOptionSubtype {};
declare parents : (IOption+ && !IOption && !IXOption && !IYOption && !IZOption) && !hasmethod(new(OptionType))
implements IBadOptionSubtype;
declare error : staticinitialization(IOption+ && IBadOptionSubtype+)
: "IOption implementations must provide a constructor which accepts an OptionType";
}
|