mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
The fix here is two-fold: 1) Teach SILGen that it cannot use the scalar casting paths for extended existentials 2) Teach the runtime casting entrypoint to unwrap as much metatype structure as possible before arriving at a 'Self' type bound for the requirement checking paths. The code here mirrors the destructuring check we're doing in remote mirrors. rdar://95166916