%Error: t/t_class_builtin_bad.v:8:17: The 'rand_mode' method is built-in and cannot be overridden (IEEE 1800-2023 18.8)
                                    : ... note: In instance 't'
    8 |    function int rand_mode(bit onoff);
      |                 ^~~~~~~~~
        ... See the manual at https://verilator.org/verilator_doc.html?v=latest for more assistance.
%Error: t/t_class_builtin_bad.v:11:17: The 'constraint_mode' method is built-in and cannot be overridden (IEEE 1800-2023 18.9)
                                     : ... note: In instance 't'
   11 |    function int constraint_mode(bit onoff);
      |                 ^~~~~~~~~~~~~~~
%Error: Exiting due to
 
     |