allow packages to reference their own items explicitly

This commit is contained in:
Zachary Snow
2021-04-13 14:44:42 -04:00
parent c0b8ba17de
commit eeeade3e19
9 changed files with 71 additions and 6 deletions
@@ -0,0 +1,8 @@
// pattern: package "P" references undeclared local "P::Foo"
package P;
localparam Foo = P::Foo;
endpackage
module top;
import P::*;
initial $display(Foo);
endmodule