Open ahti opened 5 years ago
I suspect they're not being inferred as @objc
at all, but either way it's a problem! Thanks, Lukas.
@DougGregor, did you have a Radar for this already?
Also applies to classes nested in generic contexts, even if they themselves are not generic (see dup).
The problem here seems to be in swift::findWitnessedObjCRequirements:
// If we have an optional requirement in an inherited conformance,
// check whether the potential witness matches the requirement.
// FIXME: for now, don't even try this with generics involved. We
// should be tracking how subclasses implement optional requirements,
// in which case the getWitness() check above would suffice.
I don't know what the context is here, though.
Environment
macOS Mojave, both in Swift 4.2 and the 2018-12-09 5.0 snapshot.Additional Detail from JIRA
| | | |------------------|-----------------| |Votes | 0 | |Component/s | Compiler | |Labels | Bug | |Assignee | None | |Priority | Medium | md5: cbac37027cfe1a9f7b7ec5f6d6688217is duplicated by:
Issue Description:
I need to manually specify @objc names for optional methods in a protocol implemented by a generic superclass.
Example: