Open AliSoftware opened 4 years ago
Looks a lot like SR-10753, which didn't make it into 5.1. But…I get a crash when trying this on master, so I guess it's not completely fixed!
@swift-ci create
This is fixed by https://github.com/apple/swift/pull/30807
Environment
Xcode 11.1 (11A1027) ``` java $ DEVELOPER_DIR=/Applications/Xcode-11.1.app xcrun swift --version Apple Swift version 5.1 (swiftlang-1100.0.270.13 clang-1100.0.33.7) Target: x86_64-apple-darwin18.7.0 ```Additional Detail from JIRA
| | | |------------------|-----------------| |Votes | 0 | |Component/s | Compiler | |Labels | Bug, CompilerCrash, StringInterpolation | |Assignee | None | |Priority | Medium | md5: 06bcd465e4cc99f47be14ff22d5258a4relates 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)