[SR-11637] Property wrapper crash when wrappedValue getter is mutating and setter is nonmutating #54048
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
crash
Bug: A crash, i.e., an abnormal termination of software
property wrappers
Feature: property wrappers
regression
SILGen
Area → compiler: The SIL generation stage
swift 5.2
Environment
Swift version 5.1.1-dev (LLVM 6e04008c7f, Swift 2a2b600)
Target: x86_64-apple-darwin19.0.0
Additional Detail from JIRA
md5: feb13e7ec6fc5d5a692e0f9014320c80
Issue Description:
On Swift 5.1 (release), this is diagnosed with an error:
cannot assign to property: 'self' is immutable
(although the error doesn't point to a valid source location).The text was updated successfully, but these errors were encountered: