This looks like a run time error - there should be more information in the error message, like a call stack trace. Most likely you failed to construct the covergroup before calling sample().
This looks like a run time error - there should be more information in the error message, like a call stack trace. Most likely you failed to construct the covergroup before calling sample().