Open swift-ci opened 5 years ago
@rjmccall, do you have a dup for this?
@swift-ci create
No, I don't think so.
This is just a specific bad diagnostic for having more elements than the function builder allows. (Allowing arbitrary element counts is also a problem, of course.)
Attachment: Download
Additional Detail from JIRA
| | | |------------------|-----------------| |Votes | 0 | |Component/s | Compiler | |Labels | Bug, FunctionBuilder | |Assignee | None | |Priority | Medium | md5: 5a96ef644edd478a2faa4bdea83ca57cIssue Description:
In a nutshell:
Attempting to use spacers in an HStack as a layout shortcut .. having two Spacer at the start produces the error 'Ambiguous reference to member buildBlock()'. Comment out the first line and it builds successfully.
Sample project attached.