Open stephencelis opened 1 year ago
Worse, if marked unavailable
, usages still compile:
@available(*, unavailable)
@propertyWrapper
struct A {
var wrappedValue: Int
}
@available(*, unavailable)
typealias B = A
func f() {
@A var x = 0 // Compiles!
@B var z = 0 // Compiles!
}
Appears to be a partial duplicate of https://github.com/apple/swift/issues/57231
Description
When a type that can act as a property wrapper (such as a struct, or type alias to a struct) is deprecated, no warning shows up when used as an
@
-property wrapper.Steps to reproduce
Paste the following into a Swift file:
Expected behavior
I expect both
@A
and@B
lines to have deprecation warnings.Environment
swift-driver version: 1.62.15 Apple Swift version 5.7.2 (swiftlang-5.7.2.135.5 clang-1400.0.29.51)
Xcode 14.2 / Build version 14C18