Skip to content

Conversation

@slavapestov
Copy link
Contributor

The call to getGenericSignature() might return nullptr if we encounter
a circular reference.

Fixes rdar://problem/64992293.

The call to getGenericSignature() might return nullptr if we encounter
a circular reference.

Fixes <rdar://problem/64992293>.
@slavapestov
Copy link
Contributor Author

@swift-ci Please smoke test

@slavapestov slavapestov requested a review from AnthonyLatsis July 9, 2020 03:09
public extension Wrapper where Content == Impl<WrapperParam> {
typealias WrapperParam = SomeProtocol
}

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Slightly more reduced:

protocol SomeProtocol {}
struct G<T> {}

struct Wrapper<Content: SomeProtocol> {}

extension Wrapper where Content == G<Wrapper.WrapperParam> {
  typealias WrapperParam = Never
}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The original test case came from a radar. I like to keep those mostly as-is, in case they uncover more bugs in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants