Skip to content

[Diagnostics] Tweak @propertyWrapper diags and add an educational note #30116

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
merged 1 commit into from
Feb 29, 2020

Conversation

owenv
Copy link
Contributor

@owenv owenv commented Feb 28, 2020

Changed init(...)' cannot be failable to property wrapper initializer 'init(...)' cannot be failable to make it clear why the init has special requirements.

The educational note doesn't add anything that isn't covered by the existing diags, but IMO it's useful to be able to see all the different requirements together in one place, especially if someone is writing their very first wrapper.

@owenv owenv requested a review from DougGregor February 28, 2020 04:34
@CodaFi
Copy link
Contributor

CodaFi commented Feb 29, 2020

@swift-ci smoke test

@CodaFi
Copy link
Contributor

CodaFi commented Feb 29, 2020

@swift-ci test windows

@owenv
Copy link
Contributor Author

owenv commented Feb 29, 2020

@swift-ci please test Windows platform

@owenv owenv merged commit f0eb312 into swiftlang:master Feb 29, 2020
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.

2 participants