summaryrefslogtreecommitdiffstats
path: root/tests/new/IntroductionFailsWithInnerClass.java
blob: 4c8d22d55c5e40d3d46058cf9d3749d620359160 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import org.aspectj.testing.Tester;

// PR#129

public aspect IntroductionFailsWithInnerClass {
    public static void main(String[] args) { test(); }
    public static void test() {
        Tester.checkEqual(new M().s, "m", "introduction");
    }
    //introduction M {
	public String M.s;
        //}
    /*static*/ after(M m): target(m) && execution(new (..)) {
	    m.s = "m";
	}
}

class M { 
    class LabeledPairLayout extends Object { }
}