Forward declaration of covergroup

In reply to tsb_matumoto:

Just move covergroup before new if it isn’t working for specific tool.


class myclass;

  covergroup cg;
  ... 
  endgroup
 
   function new();
      cg = new();
   endfunction

endclass