class_not_specialized.sv 197 Bytes
Newer Older
1 2 3 4 5 6 7 8 9
// pattern: reference to "X" in parameterized class "C" requires explicit #()
class C #(
    parameter Y = 1
);
    localparam X = Y + 1;
endclass
module top;
    initial $display(C::X);
endmodule