HI,
I would like to know why no errors on below line 10 ?
class item;
bit a;
function bit fetch ( string str);
//....
a = fetch; ---> line 10 ok
endfunction
endclass
module test;
bit data;
item it;
initial begin
it = new()
data = it.fetch("xyz"); --> here it must pass string argument.
end
endmodule