I try to make one example here for typed constructor . commented part runs well but this code is giving fatal error :
# ** Fatal: Illegal assignment to class work.testbench_sv_unit::packet #(int) from class work.testbench_sv_unit::packet #(byte)
1.) what can be possible reason for this?
2.)As per 8.12 Assignment, renaming, and copying of SV LRM 2017,
It shall be illegal to use a typed constructor call for a shallow copy
can someone elaborate this with small example?