Skip to content

Conversation

@slavapestov
Copy link
Contributor

We don't want to throw out a witness if it has any mention of 'Self.Foo'; we must also check that 'Foo' is one of the associated types being inferred. Otherwise, it may be a protocol type alias, in which case we want to proceed with the witness.

This fixes a regression from a recent change, a576984.

Fixes rdar://problem/120743365.

We don't want to throw out a witness if it has any mention of 'Self.Foo';
we must also check that 'Foo' is one of the associated types being
inferred. Otherwise, it may be a protocol type alias, in which case
we want to proceed with the witness.

This fixes a regression from a recent change, a576984.

Fixes rdar://problem/120743365.
@slavapestov
Copy link
Contributor Author

@swift-ci Please smoke test

@slavapestov slavapestov merged commit 2dfa350 into swiftlang:main Jan 11, 2024
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