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-8974] Same-named tuple labels are accepted #51478

Closed
jepers opened this issue Oct 11, 2018 · 4 comments
Closed

[SR-8974] Same-named tuple labels are accepted #51478

jepers opened this issue Oct 11, 2018 · 4 comments
Assignees
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself type checker Area → compiler: Semantic analysis

Comments

@jepers
Copy link

jepers commented Oct 11, 2018

Previous ID SR-8974
Radar rdar://problem/45218256
Original Reporter @jepers
Type Bug
Status Resolved
Resolution Done
Environment

Xcode 10 default toolchain

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

md5: 10c23866d4e2212f98fd856386100365

Issue Description:

As described in this forum thread, the following compiles:

func f(x a: Int, x b: Int) -> (y: Int, y: Int) {
    return (a, b)
}
print(f(x: 1, x: 2)) // prints (y: 1, y: 2)
@AnnaZaks
Copy link
Mannequin

AnnaZaks mannequin commented Oct 12, 2018

cc @slavapestov
@swift-ci create

@theblixguy
Copy link
Collaborator

Fixed on master: #24774 and cherry-picked to 5.1: #24919

@AnnaZaks
Copy link
Mannequin

AnnaZaks mannequin commented Aug 9, 2019

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

Thanks!
Anna

@jepers
Copy link
Author

jepers commented Sep 11, 2019

I'm only able to check on
Apple Swift version 5.0.1 (swiftlang-1001.0.82.4 clang-1001.0.46.5)
where my example still compiles.

But feel free to close this issue if it's fixed in 5.1.

@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 type checker Area → compiler: Semantic analysis
Projects
None yet
Development

No branches or pull requests

2 participants