I wonder if it is possible to override another class through set_type_override_by_type which has same base class.
For example.
Class A extends uvm_object
…
endclass
Class B extends uvm_object
…
endclass
it’s possible to do like set_type_override_by_type (A::get_type(), B::get_type()); in test.svh?
Or there is some tricks to achieve this kind of actions.
Another way of saying this is: you can only set an override of a class with an extension of it. Since B is not an extension of A, you cannot set it as an override.