Skip to content

Conversation

slavapestov
Copy link
Contributor

There were two problems here:

  • isUnsupportedMemberTypeReference() checked if the immediate parent type was
    an unbound generic type, but did not check for the parent of the parent, etc.

  • The caller of isUnsupportedMemberTypeReference() had to re-check the
    various invalid conditions to determine what diagnostic to emit, and if
    none of those conditions matched it would just return an ErrorType without
    emitting a diagnostic.

Fix both of these by having isUnsupportedMemberTypeReference() return an
enum indicating what went wrong, and handle more cases.

Fixes rdar://problem/67292528.

…ferences

There were two problems here:

- isUnsupportedMemberTypeReference() checked if the immediate parent type was
  an unbound generic type, but did not check for the parent of the parent, etc.

- The caller of isUnsupportedMemberTypeReference() had to re-check the
  various invalid conditions to determine what diagnostic to emit, and if
  none of those conditions matched it would just return an ErrorType without
  emitting a diagnostic.

Fix both of these by having isUnsupportedMemberTypeReference() return an
enum indicating what went wrong, and handle more cases.

Fixes <rdar://problem/67292528>.
@slavapestov slavapestov requested a review from a team as a code owner August 31, 2020 01:46
@slavapestov
Copy link
Contributor Author

@DougGregor does this look OK for 5.3?

@slavapestov
Copy link
Contributor Author

@swift-ci Please test

@slavapestov slavapestov merged commit 239486d into swiftlang:release/5.3 Aug 31, 2020
@AnthonyLatsis AnthonyLatsis added swift 5.3 🍒 release cherry pick Flag: Release branch cherry picks and removed r5.3 labels Jan 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍒 release cherry pick Flag: Release branch cherry picks swift 5.3
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants