Skip to content

[CodeCompletion] Expr context type analysis for failed array literal expression #26236

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 Jul 19, 2019

let _: [Foo] = [
  .create(str: "foo"),
  .create(#^COMPLETE^#)
]

Previously, this completion used to fail because the array expression isn't type-checked. We need to analyze the context type of the array literal first, that defines the type of the unresolved member expression.

rdar://problem/50696432

…expr

let _: [Foo] = [
  .create(str: Int)
  .create(#^COMPLETE^#)
]

Previously, this completion used to fail because the array expression
isn't typechecked. We need to analyze the context type of the array
literal first, that defines the type of the unresolved member
expression.

rdar://problem/50696432
@rintaro rintaro requested a review from benlangmuir July 19, 2019 04:38
@rintaro
Copy link
Member Author

rintaro commented Jul 19, 2019

@swift-ci Please smoke test

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