[SR-11594] Using StringInterpolation in PropertyWrapper closure fails (inout to non-inout error) #53999
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
interpolated strings
Feature → expressions → literals → string literals: interpolated strings
Environment
Xcode 11.1 (11A1027)
Additional Detail from JIRA
md5: 06bcd465e4cc99f47be14ff22d5258a4
relates to:
Issue Description:
Consider the following code below (written in a playground)
When we use
as an annotation like above, the compiler complains with the following error in the Debug console:
The error disappears if we un-sugar the annotation ourselves – i.e, we implement
_lotteryTicket
andlotteryTicket
manually like below:(But then of course the default
CodingKeys
generated forUser
now use the underscore in the default key name)The text was updated successfully, but these errors were encountered: