Skip to content

[5.1 06-12-2019][CodeCompleiton] Don't hide members for unresolved base types #25580

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

Conversation

rintaro
Copy link
Member

@rintaro rintaro commented Jun 18, 2019

Cherry-pick of #25574 into swift-5.1-branch-06-12-2019

  • Explanation: Previously, if the type has constrained generic parameters, initializer call pattern completion (e.g. TypeName(#HERE#) used to not work without explicit generic arguments TypeName<Int>(#HERE# because the generic parameters are unresolved. This patch fixes the issue by not hiding members for type with unresolved types.
  • Scope: Code completion for initializer call pattern. And qualified member list
  • Issue: rdar://problem/49480808
  • Risk: Low
  • Testing: Added regression tests
  • Reviewer: Ben Langmuir (@benlangmuir)

Don't filter out members if the base type has unresolved types.

Previously, initializers used to be hidden if the type has 'where'
requirements on the generic parameters.

This patch enables initializer completion for `SwiftUI.ForEach`.

rdar://problem/49480808
(cherry picked from commit 032c6e6)
@rintaro
Copy link
Member Author

rintaro commented Jun 18, 2019

@swift-ci Please test

@rintaro
Copy link
Member Author

rintaro commented Jun 18, 2019

@swift-ci Please nominate

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 891eba7

@rintaro
Copy link
Member Author

rintaro commented Jun 19, 2019

@swift-ci Please test Linux platform

@akyrtzi akyrtzi merged commit 1b7b5a2 into swiftlang:swift-5.1-branch-06-12-2019 Jun 19, 2019
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.

3 participants