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-15685] "Inherits from" relationship field appears blank when subclassing a class from another module #193

Closed
ethan-kusters opened this issue Jan 5, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@ethan-kusters
Copy link
Contributor

Previous ID SR-15685
Radar rdar://80090675
Original Reporter @ethan-kusters
Type Bug
Status Resolved
Resolution Done

Attachment: Download

Additional Detail from JIRA
Votes 0
Component/s Swift-DocC
Labels Bug, StarterBug
Assignee dgrumberg (JIRA)
Priority Medium

md5: 017fab3f29d8a315c4481d90fb1ec6c1

Issue Description:

Summary:
When I subclass a class defined in another module, the “Inherits from” relationship field is listed on the page but its blank.

The `targetFallback` does appear in the symbol graph like it does for protocol conformance, so this appears to be a DocC bug, not a symbol graph bug.

I'd expect the behavior for subclassing here to match the behavior for protocol conformance.

"relationships": [
    {
        "kind": "conformsTo",
        "source": "s:3Foo0A5ClassC",
        "target": "s:3Bar0A8ProtocolP",
        "targetFallback": "Bar.BarProtocol"
    },
    {
        "kind": "inheritsFrom",
        "source": "s:3Foo0A5ClassC",
        "target": "s:3Bar0A5ClassC",
        "targetFallback": "Bar.BarClass"
    }
]

Notes:
Attaching the full symbol graph for this project along with a reproducing Swift package.

@swift-ci
Copy link

swift-ci commented Mar 3, 2022

Comment by Daniel Grumberg (JIRA)

This has been resolved in #95

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 3, 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 Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants