OptionSet
that is also an NSObject
seems to be broken
#72765
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
triage needed
This issue needs more specific labels
Description
When defining an
OptionSet
that inherits fromNSObject
, thecontains(_:)
method seems to be broken.It's possible that other functionality is also broken. There are no compiler warnings or errors about this.
Reproduction
Expected behavior
The
contains(_:)
method should be implemented correctly, similar to cases where theOptionSet
is not anNSObject
.I don't know whether other
OptionSet
methods are affected.Environment
swift-driver version: 1.87.3 Apple Swift version 5.9.2 (swiftlang-5.9.2.2.56 clang-1500.1.0.2.5)
Target: arm64-apple-macosx14.0
Additional information
No response
The text was updated successfully, but these errors were encountered: