module queue_queue;
typedef int qint_t[$];
qint_t Qq[$]; // same as int Qq[$][$];
initial begin
Qq={{1,2},{3,4,5}};
Qq.push_back(qint_t'{6,7});
Qq[2].push_back(1);
$display("%p",Qq);
end
endmodule
after simulation
Error-[ICTA] Incompatible complex type
testbench.sv, 7
Incompatible complex type assignment
Type of source expression is incompatible with type of target expression.
Mismatching types cannot be used in assignments, initializations and
instantiations. The type of the target is ‘int$[][]’, while the type of
the source is ‘bit[95:0]’.
Source Expression: {3, 4, 5}
2 errors
can anybody please give the reason why it is so