@unsafe attribute is not propagated through type alias declarations #78220
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
triage needed
This issue needs more specific labels
Description
When a typealias is created in a non-strictly-safe module to a @unsafe construct, the alias can be used without triggering a warning in a strictly-safe module.
Reproduction
Apply the following diff and run tests:
Expected behavior
Warning is produced for
func testUnsafe2(_ ut: UnsafeTypeAlias)
Environment
Swift version 6.2-dev (LLVM be8c96d78337932, Swift 7867657)
Target: arm64-apple-macosx15.0
Additional information
No response
The text was updated successfully, but these errors were encountered: