Azure / Azure/azure-sdk-tools

[Swift APIView] Generic types are not linkable when references.

Open
#3,087 0 comments 0 reactions 1 assignee Claimed by @tjprescott View on GitHub
APIView Client Swift
Dominant language
C#
Stars
135
Forks
260
Avg merge
1d 22h
Merged PRs (30d)
115

Description

When a generic type is declared, the generic elements are not registered as types themselves and thus references to them do not produce linkable behavior.

```swift
struct MyGeneric {
func doSomething() -> Element // in theory, this should be linkable to the definition in the declaration
}
```

This could get quite tricky though considering that many generics use common associated types (`Element` is very common) which could result in APIView getting confused.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.