langtools/test/tools/javac/generics/odersky/BadTest4.java
changeset 37636 6c6e6e25189d
parent 30721 1024d425d97e
equal deleted inserted replaced
37635:9834489579e5 37636:6c6e6e25189d
    28 
    28 
    29         static <A> List<A> cons(A x, List<A> xs) { return xs.prepend(x); }
    29         static <A> List<A> cons(A x, List<A> xs) { return xs.prepend(x); }
    30         static <A> Cell<A> makeCell(A x) { return new Cell<A>(x); }
    30         static <A> Cell<A> makeCell(A x) { return new Cell<A>(x); }
    31         static <A> A id(A x) { return x; }
    31         static <A> A id(A x) { return x; }
    32 
    32 
    33         static Integer i = new Integer(1);
    33         static Integer i = Integer.valueOf(1);
    34         static Number n = i;
    34         static Number n = i;
    35 
    35 
    36         public static void main(String[] args) {
    36         public static void main(String[] args) {
    37             Number x = f(n, i);
    37             Number x = f(n, i);
    38             x = f(i, n);
    38             x = f(i, n);