[SR-14305] Function property wrappers cause crashes when the wrapped value type differs from the generic #56664
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
type checker
Area → compiler: Semantic analysis
Additional Detail from JIRA
md5: 8191b99435155e4047c577ad787bfb76
Issue Description:
@propertyWrapper
public struct Wrapper<T: AnyObject> {
public var wrappedValue: T?
public init(wrappedValue: T?) {
self.wrappedValue = wrappedValue
}
}
func test<T: AnyObject>(@wrapper context: T) { }
that crashes with the following:
The text was updated successfully, but these errors were encountered: