mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Rather than checking the underlying ObjectiveC decl, use the presence of `OptionalAttr` to determine if a requirement is optional instead. This is already added by the importer when necessary. An added benefit here is that this also works for optional requirements defined in Swift (ie. `@objc optional ...`).