Skip to content

Property wrapper misc fixes 5.1 #25380

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

Conversation

DougGregor
Copy link
Member

Fixes for two property-wrapper crashes:

  • Move "has lazy resolver" check later to handle merge-modules properly (SR-10844 / rdar://problem/51484958)
  • Ensure that we fully check the property type vs. wrapper's value type (SR-10899 / rdar://problem/51588022)

…s properly

The merge-modules phase doesn't have an active type checker, so we were bailing
out of property-wrapper queries before we had a chance to check the cache.
Move the check later, to the points where we actually need a type checker.

Fixes SR-10844 / rdar://problem/51484958.
…value type

Various optimizations / shortcuts in type checking property wrappers meant
that we weren't consistently verifying that a wrapped property type is
identical to the type of the 'value' property of the wrapper. Do so.

Fixes SR-10899 / rdar://problem/51588022.
@DougGregor
Copy link
Member Author

@swift-ci please test and merge

@DougGregor
Copy link
Member Author

@swift-ci test platform macOS

@DougGregor DougGregor merged commit e865b31 into swiftlang:swift-5.1-branch Jun 12, 2019
@DougGregor DougGregor deleted the property-wrapper-misc-fixes-5.1 branch June 12, 2019 16:47
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.

1 participant