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

`subtract` and `subtracting` in `CharacterSet` are not working

    XMLWordPrintable

    Details

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

      Mac OS X El Capitan 10.11.6

      Description

      `CharacterSet` Instance methods `subtract` and `subtracting` are not working.

      Here is an example in Swift REPL:

      ```swift
      import Foundation
      var charset1 = CharacterSet(charactersIn: "abc")
      let charset2 = CharacterSet(charactersIn: "b")
      charset1.subtract(charset2)
      ```
      Execution interrupted. Enter code to recover and continue.
      Enter LLDB commands to investigate (type :help for assistance.)

        Attachments

          Activity

            People

            Assignee:
            xwu Xiaodi Wu
            Reporter:
            behrang Behrang Noruzi Niya
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: