]> source.dussan.org Git - aspectj.git/commitdiff
can't use type patterns in inter-type declarations
authorjhugunin <jhugunin>
Wed, 18 Dec 2002 01:12:56 +0000 (01:12 +0000)
committerjhugunin <jhugunin>
Wed, 18 Dec 2002 01:12:56 +0000 (01:12 +0000)
tests/new/TypeNames.java

index e1aae7255a323016379495794885f53106032abe..6e87580564e1e0571309d1e8355614a9f7b97bc3 100644 (file)
@@ -31,9 +31,9 @@ class MySuffix {
 
 aspect A {
     // BUG: This is all that's required to provoke the bug in -Xlint mode
-    public String (*..*Suffix).toString() {  // lint: no type matched
-        return "ok";
-    }
+    declare parents: *..*Suffix implements Runnable;  // lint: no type matched
 
     // coverage cases
     before() : staticinitialization(*..*Suffix) { // lint: no type matched