I following definitions of the class.
public class Test2<T extends Test3> {
private T t ;
public T foo() {
Test3 test3 = new Test3();
t = test3; // I get compilation error here.**
return t;
}
}
class Test3 {
}
I get compilation error at line t=test3, saying "Type mismatch can not convert from Test3 to T; What is wrong?