You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Repeated @available attributes for the same platform produce an invalid .swiftinterface #93415
Multiple @available attributes for the same platform are accepted when type-checking source code. However, module interface emission combines them into a single attribute with duplicate platform entries. The generated interface then fails the compiler's own verification.
This reproduces without availability macros or external dependencies.
The intended availability is iOS 13.0, macOS 15.0, tvOS 13.0, and watchOS 6.0. This lets the library reuse its baseline macro while expressing additional restrictions where needed, without defining a separate macro for every combination of platform requirements.
After macro expansion, both attributes contain a macOS requirement. Source-level checking applies the stricter requirement, but interface emission retains both macOS entries in a single attribute, producing an invalid .swiftinterface.
The reproduction above omits the macro to isolate the underlying interface-emission issue.
Activity