Add error on localparam value from hierarchical path (#6456).

This commit is contained in:
Wilson Snyder
2025-09-20 09:59:48 -04:00
parent f970485e19
commit 7f85d7f453
12 changed files with 81 additions and 15 deletions
@@ -12,7 +12,7 @@ interface intf
endinterface
module sub (intf.modp the_intf_port [4]);
localparam int intf_foo = the_intf_port[0].FOO;
const int intf_foo = the_intf_port[0].FOO;
initial begin
if (intf_foo != 4) $stop;