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-4715] Let's play "bump the argument" #47292

Closed
dabrahams opened this issue Apr 26, 2017 · 3 comments
Closed

[SR-4715] Let's play "bump the argument" #47292

dabrahams opened this issue Apr 26, 2017 · 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

Comments

@dabrahams
Copy link
Collaborator

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

md5: 02a3d7b6e152167c290aef4195108e7d

Issue Description:

struct X { var foo, a, b, c: Int }
X(a: 1, b: 2, c: 3, foo: 4) // error: argument 'foo' must precede argument 'c'

OK, then:

struct X { var foo, a, b, c: Int }
X(a: 1, b: 2, foo: 4, c: 3) // error: argument 'foo' must precede argument 'b'
struct X { var foo, a, b, c: Int }
X(a: 1, foo: 4, b: 2, c: 3) // error: argument 'foo' must precede argument 'a'
struct X { var foo, a, b, c: Int }
X(foo: 4, a: 1, b: 2, c: 3) // blissful silence

Obviously we should report how to fix the problem in one swell foop.

@dabrahams
Copy link
Collaborator Author

@swift-ci create

@d-ronnqvist
Copy link
Contributor

I've created PR #10672 to resolve this.

@xedin
Copy link
Member

xedin commented Jul 3, 2017

Fix merged into master via #10672

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

No branches or pull requests

3 participants