summaryrefslogtreecommitdiffstats
path: root/tests/java5/generics/itds/GenericMethodITD10.aj
blob: 1e38a15943ef6c4d33f4bbfe2f0256e7b293417e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import java.util.*;

class Base { 
}

public class GenericMethodITD10 {

  public static void main(String[] argv) {
    List<A> as = new ArrayList<A>();
    new Base().crazy(as); // A is not Comparable
  }
}

class A {
}

aspect X {
  <R extends Comparable<? super R>> void Base.crazy(List<R> lr) {}
}