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
The same behaviour is also present in for the union(: ) method of CharacterSet (Swift Ver. 3.0.2 @ Linux (x86_64); IBM Swift Sandbox)
E.g., for two CharacterSet instances, say a and b, the expression a.union(b) results in a, even if b is not a subset of a. Expected as union(: ) simply calls formUnion(: ).
Same reportee: but worth mentioning that this ticket is closely related to SR-2510, as the formUnion(: ) method of CharacterSet eventually calls the formUnion(with: ) method of NSMutableCharacterSet, via a closure supplied to _applyUnmanagedMutation(: ) of Foundation/Boxing.swift.
Environment
Linux ubuntu 4.2.0-36-generic #42-Ubuntu SMP Thu May 12 22:05:35 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
swift-DEVELOPMENT-SNAPSHOT-2016-08-26-a
Additional Detail from JIRA
md5: c1f7a6eb871c42037bb2c96ec9c5112b
Issue Description:
The following code should print true, but it prints false:
however, the following woks:
The text was updated successfully, but these errors were encountered: