Uploaded image for project: 'Swift'
  1. Swift
  2. SR-4951

`Sequence.Element` introduced breaking changes to SWXMLHash

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Won't Do
    • Component/s: Standard Library
    • Environment:

      swift-4.0-DEVELOPMENT-SNAPSHOT-2017-05-17-a

      Description

      This changes introduced breaking changes to SWXMLHash

      failed log

      SWXMLHash.XMLIndexer:72:22: error: invalid redeclaration of 'Element'
          public typealias Element = (SWXMLHash.XMLIndexer)
                           ^
      /home/travis/build/jpsim/SourceKitten/.build/checkouts/SWXMLHash.git-4935070468589473534/Source/SWXMLHash.swift:457:10: note: 'Element' previously declared here
          case Element(XMLElement)
      

      SWXMLHash.XMLIndexer is defined as:

      public enum XMLIndexer: Sequence {
          case Element(XMLElement)
          case List([XMLElement])
          case Stream(IndexOps)
          case XMLError(IndexingError)
      …
      

      This error can not be avoided even by using -swift-version 3.

        Attachments

          Activity

            People

            • Assignee:
              airspeedswift Ben Cohen
              Reporter:
              norio_nomura Norio Nomura
            • Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: