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

NSMutableCharacterSet cannot be coerced to CharacterSet under Linux

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Medium
    • Resolution: Duplicate
    • Component/s: Foundation
    • Labels:
      None
    • Environment:

      Ubuntu 16.04

      Description

      I am unable to coerce an NSMutableCharacterSet to a regular CharacterSet under Linux (Ubuntu 16.04) using the latest Swift 4.0 build (Swift version 4.0-dev (LLVM 02fd647e50, Clang 7b75a5d546, Swift 88baa17be3)

      The following code works under OS X:

      import Foundation
      
      let cs = NSMutableCharacterSet()
      print(cs as CharacterSet)
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              andybest Andy Best
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: