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-12879] Unhandled diagnostics for undeclared function call involving default value #55326

Closed
LucianoPAlmeida opened this issue May 25, 2020 · 3 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

@LucianoPAlmeida
Copy link
Collaborator

Previous ID SR-12879
Radar rdar://problem/63639861
Original Reporter @LucianoPAlmeida
Type Bug
Status Closed
Resolution Done

Attachment: Download

Environment

master snapshot 2020-05-22(a)

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

md5: 84cc06cb969efae4eb3a28390549ba5b

Issue Description:

![](Screen Shot 2020-05-25 at 17.40.15.png)

In this case, the problem is that function should be called on array.index ...
It also doesn't provide a diagnostic when

let end = index(start, offsetBy: size, limitedBy: array.endIndex) // type of expression is ambiguous without more context
@LucianoPAlmeida
Copy link
Collaborator Author

cc @xedin@hborla

@xedin
Copy link
Member

xedin commented May 26, 2020

@swift-ci create

@LucianoPAlmeida
Copy link
Collaborator Author

Seems to be fixed on the 2020-06-13 master snapshot \o/

Couldn't track the PR which fixes but it is working now 🙂

![](Screen Shot 2020-06-14 at 09.51.52.png)

@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