confusing error message for records with no parens

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 14
    • Affects Version/s: None
    • Component/s: tools
    • None
    • b27

      the compiler produce a confusing error message for this code:

      public record Record {
      }

      Compiler produced the following error message:

      error: class, interface, enum, or record expected
      public record Record {
             ^
      1 error

      we should try to produce a better error message on the lines of:
      "incorrect record declaration"

            Assignee:
            Vicente Arturo Romero Zaldivar
            Reporter:
            Vicente Arturo Romero Zaldivar
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: