-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Description
Previous ID | SR-1782 |
Radar | None |
Original Reporter | ayaka (JIRA User) |
Type | Bug |
Status | Resolved |
Resolution | Done |
Attachment: Download
Environment
Xcode version 8.0 beta (8S128d)
Additional Detail from JIRA
Votes | 0 |
Component/s | Foundation |
Labels | Bug, RunTimeCrash |
Assignee | @phausler |
Priority | Medium |
md5: e2da46d06a88225b959e11530e4b8ede
is duplicated by:
- SR-2058 CharacterSet.substracting crashes
Issue Description:
Steps to reproduce:
1. Create a Swift playground with the following code:
import Foundation
var nonAlphanumeric = CharacterSet.alphanumerics.inverted
nonAlphanumeric.remove(charactersIn: " ")
2. Wait for it to run
3. Crash
The current workaround is to use NSMutableCharacterSet.alphanumerics() instead
var nonAlphaNumeric = NSMutableCharacterSet.alphanumerics().inverted
nonAlphaNumeric.remove(charactersIn: " ")
I think Philippe just fixed it during a lab but wanted to make sure it gets tracked!
Thanks 😃