`default_nettype none
module top(
output wire out1,
output wire out2
);
generate
if (1) begin : outer
if (1) begin : foo
wire x = 0;
wire x = 1;
assign out1 = foo.x;
end
assign out2 = foo.x;
endgenerate
endmodule