abstract aspect DecPGenericTest { declare parents : X implements Y; } aspect Sub extends DecPGenericTest { declare warning : execution(* I+.foo()) : "success"; } class C { void foo() {} } interface I {}