Error should be raised for public typealias with internal generic parameter #73317
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
triage needed
This issue needs more specific labels
Description
When using the following Swift code:
A warning is issued:
However, I believe this should be an error instead of a warning.
Upon examining the source code, I discovered a FIXME comment indicating that there are plans to promote this warning to an error in a future -swift-version break:
Furthermore, when BUILD_LIBRARY_FOR_DISTRIBUTION is set to YES, this issue leads to module verifier failures. The inconsistent behavior between the two scenarios adds to the problem.
Reproduction
Expected behavior
The warning should be upgraded to an error for the public typealias with an internal generic parameter. This change would ensure consistency and prevent module verifier failures when building libraries for distribution.
Environment
Additional information
No response
The text was updated successfully, but these errors were encountered: