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

CS0542 member names cannot be the same as their enclosing type

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.9.2
    • C# - Compiler
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: