Open swift-ci opened 3 years ago
Comment by Kyle Van Essen (JIRA)
Also, a semicolon on the first line fixes this too:
func this_fails_1() {
_ = Thingy.thingies {
.thingy(with: "Thing one");
.thingy(with: "Thing two")
}
}
Comment by Kyle Van Essen (JIRA)
(Also this is probably just like, generally unsolvable; so feel free to close it. Now that I get what's going on, I know why this happens, but it definitely took a bit to get why it was happening)
Attachment: Download
Environment
Xcode Version 13.0 (13A233)Additional Detail from JIRA
| | | |------------------|-----------------| |Votes | 0 | |Component/s | Compiler | |Labels | Bug | |Assignee | None | |Priority | Medium | md5: bd111aa43dbf15fbdc67605aa78729d0Issue Description:
When a result builder, which takes in a concrete type, is used with implicit member syntax, compiler errors occur:
tdonnelly (JIRA User) calls out this is likely because the compiler is assuming chained member syntax.
It would be nice if there was a way to be smarter about this, or make the error message better somehow, but this also likely means making whitespace significant.