Skip to content

[ModuleInterface] Allow non-mutable IBOutlet instance properties in module interfaces #24225

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

Merged

Conversation

nathawes
Copy link
Contributor

If an @IBOutlet property is public private(set) its interface only has a getter. Consuming this interface was triggering a diagnostic that @IBOutlet properties must be mutable. This patch bypasses this check for module interfaces.

Resolves rdar://problem/49856177

@nathawes
Copy link
Contributor Author

@swift-ci please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 2fa179f201756bb9cde25efd54ba89b39b6d7102

…odule interfaces

If an IBOutlet property is public private(set), it's interface only has a
getter. Consuming this interface was triggering a diagnostic that IBOutlet
properties must be mutable. This patch bypasses this check for module
interfaces.

Resolves rdar://problem/49856177
@nathawes nathawes force-pushed the iboutlet-private-set-in-module-interface branch from 2fa179f to 3707139 Compare April 23, 2019 23:26
@nathawes
Copy link
Contributor Author

@swift-ci please test and merge

@nathawes
Copy link
Contributor Author

@swift-ci test and merge

@swift-ci swift-ci merged commit 63d64fb into swiftlang:master Apr 24, 2019
@nathawes nathawes deleted the iboutlet-private-set-in-module-interface branch April 24, 2019 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants