Skip to content

Conversation

@slavapestov
Copy link
Contributor

@slavapestov slavapestov commented Jul 10, 2017

  • Description: Fixes a regression with extensions of a type that has stored properties with initializer expressions.

  • Scope of the issue: Reported as a regression by a user.

  • Origination: Introduced in 4.0 beta 1.

  • Tested: New tests added

  • Reviewed by: @jckarter

  • Radar: rdar://problem/32743703

…rties

Always give stored property initializers the linkage of the type
that contains them, even if the property is less visible than the
type.

This fixes the case where a type defines a private property, and an
extension in a different file from the same module defines a
constructor.

Fixes <rdar://problem/32743703>.
@slavapestov slavapestov changed the title SILGen: Fix linkage for stored property initializers of private properties SILGen: Fix linkage for stored property initializers of private properties [4.0] Jul 10, 2017
@slavapestov
Copy link
Contributor Author

@swift-ci Please test

@slavapestov slavapestov requested a review from jckarter July 10, 2017 20:56
@jckarter
Copy link
Contributor

Looks good.

@DougGregor DougGregor merged commit 0f20fb5 into swiftlang:swift-4.0-branch Jul 11, 2017
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