Skip to content

Use getOriginalInit instead of PatternBindingEntry::hasInitStringRepresentation #38467

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 2 commits into from
Jul 19, 2021

Conversation

davidungar
Copy link
Contributor

Attempt a fix for serialization (i.e. -emit-module) for source code:

@propertyWrapper
public struct TestWrapper {
  public var wrappedValue: Int
  public init(wrappedValue: Int) { self.wrappedValue = wrappedValue }
}

@frozen public struct Test {
  @TestWrapper public var x: Int = 42
}

rdar://80449046

@davidungar
Copy link
Contributor Author

@swift-ci please test

@davidungar davidungar requested a review from slavapestov July 18, 2021 21:25
@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - e060363

@davidungar
Copy link
Contributor Author

@swift-ci please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - fc0eca5

@davidungar
Copy link
Contributor Author

@swift-ci please smoke test linux platform

@davidungar davidungar requested a review from xymus July 19, 2021 16:33
Copy link
Contributor

@xymus xymus left a comment

Choose a reason for hiding this comment

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

Looks good, thanks!

@davidungar
Copy link
Contributor Author

Thank you, @xymus !

@davidungar davidungar merged commit 2c05750 into swiftlang:main Jul 19, 2021
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