Open dabrahams opened 1 year ago
@amritpan has a PR for let
properties so I wonder whether all it would take to support this case too is to change the check from isLet
to isSettable
👋 Hi, I am experiencing this issue. After some google search I did not manage to find any other meaningful mention about this problem. Is there any swift bug or other forum discussion where I can maybe read the latest news about this? Thanks!
@acecilia If you do this, it works:
struct X {
@Let var x: Int
init() {
_x = .init(wrappedValue: 5)
}
}
This should compile but doesn't (or so I claim, since there's no spec):
swift-driver version: 1.62.15 Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 clang-1400.0.29.51) Target: arm64-apple-macosx13.0