read_verilog -sv <<EOF
parameter P = 1;
module example(
output integer out
);
assign out = P;
endmodule
module top(
example #(2) e1(out);
EOF
logger -expect error "Can't find object for defparam" 1
hierarchy