summaryrefslogblamecommitdiff
path: root/test/files/pos/t3943/Outer_1.java
blob: 1d38c5e76b129f82899ea6712e7483932602bc91 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14













                                                                       
class Outer<E> {
  abstract class Inner {
    abstract public void foo(E e);
  }
}

class Child extends Outer<String> {
  // the implicit prefix for Inner is Outer<E> instead of Outer<String>
  public Inner getInner() {
    return new Inner() {
     public void foo(String e) { System.out.println("meh "+e); }
    };
  }
}