Matching types in Parameterized Class

In reply to dave_59:

Since uvm_bitsream_t is declared as ::

**typedef logic signed [ UVM_STREAMBITS - 1 : 0 ] uvm_bitstream_t ;

( by default UVM_STREAMBITS is 4096 )**

I declared my_type as reg signed [4095:0] .

Now both are signed , both have same size and both have same range

Yet it doesn’t work