Why these code have error?
module tb;
// TransactionIn tr;
bit s[5];
initial begin
s = {0,1,0,1,1};
if(s ==[0,1,0,1,1])
$display("yes");
//tr = new();
end
endmodule
module tb;
// TransactionIn tr;
bit s[5];
initial begin
s = {0,1,0,1,1};
if(s =={0,1,0,1,1})
$display("yes");
//tr = new();
end
endmodule