We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Xcode: Version 11.3.1 (11C504) Swift: Apple Swift version 5.1.3 (swiftlang-1100.0.282.1 clang-1100.0.33.15)
md5: cbb8599608eb9f716cf415a3616fff97
is duplicated by:
Issue Description:
For some reason the following code produces:
SomeSubClass init subWillSet - 105553175052640 123 321 SomeSuperClass init
It seems that the @propertyWrapper can at some point access an uninitialized memory area.
@propertyWrapper struct SomeWrapper { private var someValue: Int var wrappedValue: Int { get { someValue } set { someValue = newValue } } init(wrappedValue: Int) { someValue = wrappedValue } } class SomeSuperClass { @SomeWrapper var superProperty: Int init() { print("SomeSuperClass init") superProperty = 1 } } final class SomeSubClass: SomeSuperClass { @SomeWrapper var subProperty: Int = 123 { willSet { print("subWillSet - ", superProperty, subProperty, newValue) } } override init() { print("SomeSubClass init") subProperty = 321 super.init() } } let testObject = SomeSubClass()
The text was updated successfully, but these errors were encountered:
@swift-ci create
Sorry, something went wrong.
No branches or pull requests
Environment
Xcode: Version 11.3.1 (11C504)
Swift: Apple Swift version 5.1.3 (swiftlang-1100.0.282.1 clang-1100.0.33.15)
Additional Detail from JIRA
md5: cbb8599608eb9f716cf415a3616fff97
is duplicated by:
Issue Description:
For some reason the following code produces:
It seems that the @propertyWrapper can at some point access an uninitialized memory area.
The text was updated successfully, but these errors were encountered: