blob: f02b9a62b66d32b760633eab5bac9cd673a1fc77 [file] [log] [blame]
package p;
public class TwoBoundedTypeParams_in {
public void foo() {
Complex<Integer,Integer> c1= new Complex<Integer,Integer>(0,-1);
Complex<Float,Float> c2= new Complex<Float,Float>(0.0F, 3.14F);
}
}
class Complex<TX extends Number, TY extends Number> {
TX fLeft;
TY fRight;
public /*[*/Complex/*]*/(TX x, TY y) {
fLeft= x;
fRight= y;
}
}