package P;
localparam X = 1;
endpackage
package Q;
export P::X;
import P::X;
module top;
initial $display(Q::X);
endmodule