mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
It is not the case that `any P` satisfies a class bound even if the existential is a composition with an exact match to the class bound. The resulting existential box must be opened as the exact class type before this conversion can succeed. This appears to be a regression from Swift 5.1, which was the last Swift compiler that banned this typing rule. rdar://92358570
520 KiB
520 KiB