Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-11403] swift-demangle truncates its demangling of associated type descriptors #53804

Closed
beccadax opened this issue Aug 31, 2019 · 1 comment
Assignees
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself

Comments

@beccadax
Copy link
Contributor

Previous ID SR-11403
Radar None
Original Reporter @beccadax
Type Bug
Status Resolved
Resolution Done
Environment

master branch circa 30 August 2019; also Swift 5.1

Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug
Assignee @theblixguy
Priority Medium

md5: dff66809870de53369d543ff7edf9307

Issue Description:

When demangling an associated type descriptor name like $s5Assoc3Kit5ProtoPTl, the associated type's name is printed, but information about the protocol it belongs to is not, even though it's available in the mangled name:

$ swift demangle -expand s5Assoc3Kit5ProtoPTl
Demangling for $s5Assoc3Kit5ProtoPTl
kind=Global
  kind=AssociatedTypeDescriptor
    kind=DependentAssociatedTypeRef
      kind=Identifier, text="Assoc"
      kind=Type
        kind=Protocol
          kind=Module, text="Kit"
          kind=Identifier, text="Proto"
$s5Assoc3Kit5ProtoPTl ---> associated type descriptor for Assoc
@theblixguy
Copy link
Collaborator

PR: #26980

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself
Projects
None yet
Development

No branches or pull requests

2 participants