RawRepresentable conditional conformance to NSPrimitiveAttributeCoder isn't actually there.
CTMacUser opened this issue · 1 comments
CTMacUser commented
You did all the preparation for it, but you forgot that actual ": NSPrimitiveAttributeCoder
" part.
vmanot commented
@CTMacUser it's not possible to add protocol conformances to protocols. The original protocol (in this case, RawRepresentable
) must already refine it, it cannot be added outside the declaring module. This simply ensures that if the client adds NSPrimitiveAttributeCoder
to their enum/raw-representable, NSPrimitiveAttributeCoder
's methods are implemented.