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

C# generator generates code with a keyword as variable name

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • 0.9.3
    • None
    • C# - Compiler
    • None

    Description

      One structure is named InstrumentBase. It is included as a field in another structure, Equity. A piece of the final C# code looks like this:

          public Equity(InstrumentBase base) : this() {
            this.Base = base;
          }
      

      but base is a keyword in C#, so this doesn't compile.

      Attachments

        Issue Links

          Activity

            People

              jensg Jens Geyer
              andre6b Andre
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: