Skip to content
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

[SR-14533] Bogus "Ambiguous without more context" on making a typo inside zip #56885

Closed
typesanitizer opened this issue Apr 27, 2021 · 2 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself diagnostics QoI Bug: Diagnostics Quality of Implementation type checker Area → compiler: Semantic analysis

Comments

@typesanitizer
Copy link

Previous ID SR-14533
Radar rdar://problem/77196241
Original Reporter @typesanitizer
Type Bug
Status Resolved
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug, DiagnosticsQoI, TypeChecker
Assignee None
Priority Medium

md5: 2e9dec70d1a530903b611a368dec0d7b

Issue Description:

struct S {
  var xs: [Int]
}
func f(_ s: S) {
  for (x1, x2) in zip(s.xs, s.ys) {
  // type of expression is ambiguous without more context
  }
} 

Tested with

Swift version 5.5-dev (LLVM 159d0efd5633014, Swift c9b880d62983414)
@typesanitizer
Copy link
Author

@swift-ci create

@LucianoPAlmeida
Copy link
Collaborator

Fixed on main by Pavel's PR #38235
#38281 just adds regression test

cc @xedin

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself diagnostics QoI Bug: Diagnostics Quality of Implementation type checker Area → compiler: Semantic analysis
Projects
None yet
Development

No branches or pull requests

2 participants