resolve the type of a generic variable declared in the parent class