data/full_repos/permissive/143278/ivltests/enum_test8.v
 line:5: before: "logic"
1: b'%Warning-WIDTH: data/full_repos/permissive/143278/ivltests/enum_test8.v:5: Operator ADD expects 4 bits on the LHS, but LHS\'s VARREF \'enum_start\' generates 2 bits.\n                                                                         : ... In instance top\n  enum logic [3:0] { first  = enum_start + 2\'d0,\n                                         ^\n                ... Use "/* verilator lint_off WIDTH */" and lint_on around source to disable this message.\n%Warning-WIDTH: data/full_repos/permissive/143278/ivltests/enum_test8.v:5: Operator ADD expects 4 bits on the RHS, but RHS\'s CONST \'2\'h0\' generates 2 bits.\n                                                                         : ... In instance top\n  enum logic [3:0] { first  = enum_start + 2\'d0,\n                                         ^\n%Warning-WIDTH: data/full_repos/permissive/143278/ivltests/enum_test8.v:6: Operator ADD expects 4 bits on the LHS, but LHS\'s VARREF \'enum_start\' generates 2 bits.\n                                                                         : ... In instance top\n                     second = enum_start + 2\'d1} my_enum;\n                                         ^\n%Warning-WIDTH: data/full_repos/permissive/143278/ivltests/enum_test8.v:6: Operator ADD expects 4 bits on the RHS, but RHS\'s CONST \'2\'h1\' generates 2 bits.\n                                                                         : ... In instance top\n                     second = enum_start + 2\'d1} my_enum;\n                                         ^\n%Error: Exiting due to 4 warning(s)\n'
module top;
  localparam enum_start = 2'd1;


  enum logic [3:0] { first  = enum_start + 2'd0,
                     second = enum_start + 2'd1} my_enum;

  initial $display("PASSED");

endmodule
module top;

  localparam enum_start = 2'd1;


  enum logic [3:0] { first  = enum_start + 2'd0,
                     second = enum_start + 2'd1} my_enum;

  initial $display("PASSED");

endmodule