Open jeremyabannister opened 4 years ago
Issue Description:
This does not compile:
@propertyWrapper struct Wrap <Value> { private var storage: Value var wrappedValue: Value { get { storage } set { storage = newValue } } init (wrappedValue: Value) { self.storage = wrappedValue } } struct Foo { @Wrap private var bar: Int = 0 var baz: String { String(format: "%02d", bar) } }
But this does:
@propertyWrapper struct Wrap <Value> { private var storage: Value var wrappedValue: Value { get { storage } set { storage = newValue } } init (wrappedValue: Value) { self.storage = wrappedValue } } struct Foo { @Wrap private var bar: Int = 0 var baz: String { String(format: "%02d", _bar.wrappedValue) } }
@swift-ci create
Works fine on master. Can you verify again using the latest development snapshot?
Additional Detail from JIRA
| | | |------------------|-----------------| |Votes | 0 | |Component/s | | |Labels | Bug | |Assignee | None | |Priority | Medium | md5: aa10b179f2073347c9981bb284e6f896Issue Description:
This does not compile:
But this does: