[SR-4464] Assigning a property to itself fails in 3.1 #47041
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler itself
diagnostics QoI
Bug: Diagnostics Quality of Implementation
good first issue
Good for newcomers
Attachment: Download
Additional Detail from JIRA
md5: 702671bd69d19bebf1a102eb3ec92355
Issue Description:
Prior 3.1 we could assign property to itself if needed with
self.name = (self.name)
, now it fails. Also, see this for details – http://stackoverflow.com/a/31931318/458356.Just discovered by luck, apparently the supported syntax now is
(self.name = self.name)
, is this official?The text was updated successfully, but these errors were encountered: