Skip to content

For Swift 3/4 mode, do not treat IUOs in illegal positions as Optionals. #13259

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
Dec 5, 2017
Merged

For Swift 3/4 mode, do not treat IUOs in illegal positions as Optionals. #13259

merged 1 commit into from
Dec 5, 2017

Conversation

rudkx
Copy link
Contributor

@rudkx rudkx commented Dec 4, 2017

Instead, just emit a deprecation warning and suggest switching to Optionals.

The old behavior caused several projects to break, so before we change
the behavior here we need to investigate whether we can mitigate most
of those breaks.

rdar://problem/35831769

@rudkx rudkx requested a review from DougGregor December 4, 2017 22:59
@rudkx
Copy link
Contributor Author

rudkx commented Dec 4, 2017

@swift-ci Please smoke test

Copy link
Member

@DougGregor DougGregor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you!

Instead, just emit a deprecation warning and suggest switching to Optionals.

The old behavior caused several projects to break, so before we change
the behavior here we need to investigate whether we can mitigate most
of those breaks.
@rudkx
Copy link
Contributor Author

rudkx commented Dec 5, 2017

I missed updating one migrator test file.

@rudkx
Copy link
Contributor Author

rudkx commented Dec 5, 2017

@swift-ci Please smoke test

@shahmishal shahmishal merged commit 1006a6e into swiftlang:master Dec 5, 2017
@rudkx rudkx deleted the do-not-decay-iuo-to-optional branch December 5, 2017 03:45
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.

3 participants