summaryrefslogtreecommitdiffstats
path: root/tests/bugs150/pr110307/Case5.java
blob: ceb3936a6409621a98016aa947be9c5a79ca6c88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import java.util.*;
import java.lang.annotation.*;
import java.lang.ref.*;

interface I<T> {
}

class A {
  // error, not compatible with List<String> from supertype
  List<Integer> foo() { return null; } 
}

aspect X {

  List<T> I<T>.foo() { return null; }

  declare parents: A implements I<String>;
}