sv2v/test/error/class_parameter_missing_2.sv

10 lines
205 B
Systemverilog

// pattern: required type parameter "Y" in class "C" has not been provided
class C #(
parameter type Y
);
localparam X = $bits(Y) + 1;
endclass
module top;
initial $display(C#()::X);
endmodule