fix interface conversion erroneously renaming colliding pattern names

This commit is contained in:
Zachary Snow
2021-06-23 21:39:15 -04:00
parent a15b0c735f
commit afc3ea435b
3 changed files with 31 additions and 1 deletions
+18
View File
@@ -0,0 +1,18 @@
interface Interface;
logic x;
endinterface
module Module (
Interface p
);
typedef struct packed {
integer p;
} S;
S s = '{ p: 1 };
initial $display("%0d %0d", s, s.p);
endmodule
module top;
Interface intf();
Module mod(intf);
endmodule
+3
View File
@@ -0,0 +1,3 @@
module top;
initial $display("%0d %0d", 1, 1);
endmodule