Hello,
I have a parametrized transaction class, which has one property id.
class trans#(parameter int A) extends uvm_sequence_item;
int id;
...
endclass
In other class I have queue of objects of trans type.
I want to write a method which will search the queue element property id and if it matches local id it will delete matched element.
...
trans#(64) temp_tran[$];
temp_tran.delete(temp_tran.find_first_index(x) with (x.id == local_id));
...
well, this is not working, I get error that this is illegal assignment.
How can I fix it?