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-9217] Incorrect error message when the result of a keypath doesn't match the return type of a function #51706

Closed
swift-ci opened this issue Nov 9, 2018 · 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

@swift-ci
Copy link
Collaborator

swift-ci commented Nov 9, 2018

Previous ID SR-9217
Radar rdar://problem/45994364
Original Reporter twof (JIRA User)
Type Bug
Status Resolved
Resolution Done
Environment

Xcode 10.1
Swift 4.2.1

Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug, DiagnosticsQoI, TypeChecker
Assignee twof (JIRA)
Priority Medium

md5: ccd7cda56545957d0e6ae9dec859c540

relates to:

  • SR-10826 can we make this keyPath subscript error message better?

Issue Description:

@LucianoPAlmeida
Copy link
Collaborator

This seems fixed on Xcode 11.4 twof (JIRA User) mind verify and resolve/close 🙂

@xedin
Copy link
Member

xedin commented Apr 17, 2020

Please verify that this problem has been fixed in Xcode 11.4 (new diagnostic is - cannot convert return expression of type 'Int' to return type 'String').

@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

3 participants