mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Allow `@_implements` to be expressed in an extension of the protocol in which the associated type is defined. Use this to uncomment an intended use of `@_implements` in `Sequence` that could be used to replace a longstanding hack for associated type inference. Since this change means that the standard library module interface won't be accepted by older compilers, introduce a suppressible feature ssociatedTypeImplements` that covers the use of `@_implements` on type declarations. This will hide the `@_implements` attribute from older compilers.
2.8 KiB
2.8 KiB