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-9068] [Source Compat] Breakage: NonEmpty - error: generic parameter 'Key' could not be inferred #51569

Closed
clackary opened this issue Oct 23, 2018 · 4 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. source compatibility

Comments

@clackary
Copy link
Contributor

Previous ID SR-9068
Radar rdar://problem/45511838
Original Reporter @clackary
Type Bug
Status Resolved
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s
Labels Bug, SourceCompatibility
Assignee None
Priority Medium

md5: 33a44e6b51ad9bf7a26601d3d3788832

Issue Description:

There's a pull request to add swift-nonempty to the source compat suite. PR testing for this might be hitting a legitimate issue.

From the build log...

/Users/buildnode/jenkins/workspace-private/swift-PR-source-compat-suite-test-macOS/project_cache/NonEmpty/Sources/NonEmpty/NonEmpty+Dictionary.swift:109:12: error: generic parameter 'Key' could not be inferred
    return Dictionary(uniqueKeysWithValues: Array(lhs))
           ^
Swift.Dictionary:1:15: note: 'Key' declared as parameter to type 'Dictionary'
public struct Dictionary<Key, Value> where Key : Hashable {
              ^
/Users/buildnode/jenkins/workspace-private/swift-PR-source-compat-suite-test-macOS/project_cache/NonEmpty/Sources/NonEmpty/NonEmpty+Dictionary.swift:109:12: note: explicitly specify the generic arguments to fix this issue
    return Dictionary(uniqueKeysWithValues: Array(lhs))
           ^
                     <<#Key: Hashable#>, Any>
@clackary
Copy link
Contributor Author

@swift-ci create

@belkadan
Copy link
Contributor

Possibly the same as SR-6305?

@slavapestov
Copy link
Member

#21825

@AnnaZaks
Copy link
Mannequin

AnnaZaks mannequin commented Jul 23, 2019

@clackary, Could you verify if the problem is fixed and if so move the JIRA to "Closed"?

Thanks!
Anna

@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. source compatibility
Projects
None yet
Development

No branches or pull requests

3 participants