Files
swift-mirror/stdlib/public/RemoteInspection
Augusto Noronha 0d82d03e93 [RemoteInspection] Fix generic typealiases in DemanglingForTypeRef
When a typealias or associated type is declared inside a protocol, the
mangling of an access like S.A (for `typealias A` in `protocol P` and
`struct S : P`) wraps the protocol in a BoundGenericProtocol whose
single generic argument is the conforming Self type:

  BoundGenericProtocol
  |
  --> Protocol: P
  |
  --> TypeList:
      |
      --> Structure: S

DemanglingForTypeRef was substituting the richer parent wholesale in
place of the Protocol, losing the BoundGenericProtocol entirely and
producing a mangled tree that looks as if A were declared directly
on S rather than inside P.

Assisted-by: claude

rdar://160408523
2026-05-15 07:30:07 -07:00
..