aboutsummaryrefslogtreecommitdiffstats
path: root/tests/features169/itdInnerTypes/Choice.java
blob: f944e4fdad6117cb7e352bdb39f5378ee71f3f59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import java.util.*;

public class Choice {
  public static void main(String []argv) {
    System.out.println(Keys.CHOICE);
  }
}

aspect X {
  static List<Choice> choices;
  public static List forClass() {
    ArrayList al = new ArrayList();
    return al;
  }
  public static class Choice.Keys {
    public static final Function<Object, Choice> CHOICE = Get.attrOf(choices,"choice");
  }
}

class Get {
  public static <T> Function<Object,T> attrOf(List<T> t,String s) {
    return null;
  }
}

class Function<A,B> {
  
}