mirror of
https://github.com/apple/swift.git
synced 2026-06-20 15:42:51 +02:00
5d74bcd57c
This is a follow-up to https://github.com/swiftlang/swift/pull/86499. Make sure that the error is downgraded even when there is no parent expression, this covers pattern binding initializer expressions which started to error after `DynamicSelf` change. Replace a custom "will be an error in Swift 6" with a modern downgrade API.