In reply to dave_59:
Ok I think you answered my question. It seems like the only way to check that I set the contxt of the object successfully is to override it and then check the type of the object. That makes sense.
However I want to triple check my understanding of “context is not recorded anywhere”. Does this mean when I create a uvm_object with a contxt, it uses that contxt to check for any overrides, then throws that information away? What about the parent field for uvm_objects that are not sequences? If I set that when creating a uvm_object, does that information also get used to check for overrides and then gets thrown away after the object has been created?
This is very interesting. Thanks for you help!