Open swift-ci opened 4 years ago
@swift-ci create
Any updates on this? 🙏
Reduced:
@propertyWrapper
struct Wrapper {
var wrappedValue: Bool
init(wrappedValue: @autoclosure () -> Bool) {
self.wrappedValue = true
}
}
func test() {
@Wrapper var storage: Bool
storage = true
}
Tested with 23e2f345b51.
Environment
Apple Swift version 5.3 (swiftlang-1200.0.16.9 clang-1200.0.22.5) Target: x86_64-apple-darwin19.5.0 macOS Catalina 10.15.5 (19F101) Xcode Version 12.0 beta (12A6159)Additional Detail from JIRA
| | | |------------------|-----------------| |Votes | 1 | |Component/s | | |Labels | Bug | |Assignee | None | |Priority | Medium | md5: 1c30f84090b7a2a317091e8ff055868bIssue Description:
I'm trying to implement a property wrapper `LazyConstant` using `Lazy` property wrapper in the SE proposal.
Lazy
LazyConstant
However if I change the line with the error to be
it compiles and functions correctly.