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

Swift compiler does not escape reserved words

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.10.0
    • Component/s: Swift - Compiler
    • Labels:
      None

      Description

      Swift has a number of reserved words that may still be used if quoted with backticks in the generated code:

      Self
      associatedtype
      defer
      deinit
      dynamicType
      enum
      extension
      fallthrough
      false
      func
      guard
      init
      inout
      internal
      let
      operator
      protocol
      repeat
      rethrows
      struct
      subscript
      throws
      true
      typealias
      where

        Attachments

          Activity

            People

            • Assignee:
              stigsb Stig Bakken
              Reporter:
              stigsb Stig Bakken
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: