package_self_reference_shadow.sv 225 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11
package P;
    localparam Bar = 1;
    function automatic integer func;
        localparam Bar = 2;
        func = Bar + P::Bar;
    endfunction
endpackage
module top;
    import P::*;
    initial $display(func());
endmodule