Error - near ":": syntax error, unexpected ':', expecting IDENTIFIER or clock

In reply to Srini @ CVCblr.com:

Now I got:
at …\sv\my_macros.sv(20): near “endcase”: syntax error, unexpected endcase, expecting class.