swiftlang / swift

The Swift Programming Language
https://swift.org
Apache License 2.0
67.31k stars 10.34k forks source link

[SR-14936] SwiftUI EditButton: Failed to produce diagnostic for expression; #57278

Open swift-ci opened 3 years ago

swift-ci commented 3 years ago
Previous ID SR-14936
Radar rdar://problem/80820404
Original Reporter BergQuester (JIRA User)
Type Bug

Attachment: Download

Environment Mac OS 11.4 (20F71) Xcode 13.0 beta 3 (13A5192j)
Additional Detail from JIRA | | | |------------------|-----------------| |Votes | 0 | |Component/s | Compiler | |Labels | Bug | |Assignee | None | |Priority | Medium | md5: a3a4c9fd5bdeba4dd578bb1157debb21

Issue Description:

The attached project is one I am using to try out composable architecture. On line 43 in

BabySelectionView I get this error:

Failed to produce diagnostic for expression; please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the project

It appears to be related to the EditButton on line 55 as commenting it out fixes the error.

typesanitizer commented 3 years ago

Confirming I can reproduce the issue with Xcode 13 beta 3.

@swift-ci create