Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-129652

Messages that have the 'Repeated' suffix lead to name clashing with the generated Repeated aliases

    XMLWordPrintable

Details

    • 4b778a70d (dev), b614b9dc2 (dev), 7203da26f (6.9), 9533a5778 (6.9), 0a642f498 (6.8)

    Description

      The following code won't compile because of name clashing:

      message MyMessage {
          int32 a = 1;
      }
      
      message MyMessageRepeated {
          repeated MyMessage b = 1;
      }
      

      MyMessage generates the QList alias that is handy in certain usecases and blocks the usage of Repeated suffix in MyMessageRepeated.

      We should avoid generating aliases.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            semlanik Alexey Edelev
            semlanik Alexey Edelev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: