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-5111] Swift 4 doesn't allow private constants as default arguments of internal functions in frameworks #47687

Closed
keith opened this issue Jun 6, 2017 · 2 comments
Assignees
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior.

Comments

@keith
Copy link
Collaborator

keith commented Jun 6, 2017

Previous ID SR-5111
Radar rdar://problem/32592973
Original Reporter @keith
Type Bug
Status Resolved
Resolution Done

Attachment: Download

Additional Detail from JIRA
Votes 1
Component/s
Labels Bug
Assignee @keith
Priority Medium

md5: b1ebe90f888c6525281067b70798a381

Issue Description:

When using a private constant as a default argument of an internal function in a framework, you currently get this error in Xcode 9 beta 1:

Swift4PrivateDefaultArgument/Swift4PrivateDefaultArgument/File.swift:5:21: Let 'Baz' is private and cannot be referenced from a default argument value
@jckarter
Copy link
Member

jckarter commented Jun 6, 2017

@swift-ci create

@jckarter
Copy link
Member

Looks like @slavapestov fixed this in #10179

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

No branches or pull requests

2 participants