Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-2557

CS0542 member names cannot be the same as their enclosing type

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.9.2
    • Component/s: C# - Compiler
    • Labels:
      None
    • Patch Info:
      Patch Available

      Description

      The following IDL, although perfectly legal, leads to error CS0542 with C#:

      test.thrift
      struct ClassAndProp {
        1: bool ClassAndProp
      }
      

      gives

      > error CS0542: 'ClassAndProp': member names cannot be the same as their enclosing type

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jensg Jens Geyer
                Reporter:
                jensg Jens Geyer
              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: