You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For some reason NSCharacterSet requires copyWithZone: and mutableCopyWithZone: to be overridden (even though they both could probably be implemented abstractly via the data representations.
Pushed fixes plus unit tests encapsulating this use case with commit 07f0049e
Attachment: Download
Environment
Xcode version 8.0 beta (8S128d)
Additional Detail from JIRA
md5: e2da46d06a88225b959e11530e4b8ede
is duplicated by:
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 😃
The text was updated successfully, but these errors were encountered: