interface_bad_expr_genvar.sv 321 Bytes
Newer Older
1
// pattern: inlining instance "intf" of interface "Interface" would make expression "x" used in "intf" resolvable when it wasn't previously
2
// location: interface_bad_expr_genvar.sv:4:5
3 4 5 6 7 8 9
interface Interface;
    assign x = 1;
endinterface
module top;
    for (genvar x = 0; x < 2; x++)
        Interface intf();
endmodule