Skip to content

[SR-5111] Swift 4 doesn't allow private constants as default arguments of internal functions in frameworks #47687

@keith

Description

@keith
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

Metadata

Metadata

Assignees

Labels

bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions