aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs150/pr104024.aj
blob: 98ac76412652f88d077e4449973348a29ac1834a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
class Outer {
  public class Inner {}
}


public class pr104024 {
  public void varargs(Object... varargs) {}

  public void test() {
    Outer.Inner inner = new Outer().new Inner();
    varargs(inner); // works
    varargs(new Outer().new Inner()); // crashes
  }
}