Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-11888] Compile error in @_functionBuilder block #54304

Closed
swift-ci opened this issue Dec 3, 2019 · 5 comments
Closed

[SR-11888] Compile error in @_functionBuilder block #54304

swift-ci opened this issue Dec 3, 2019 · 5 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself

Comments

@swift-ci
Copy link
Collaborator

swift-ci commented Dec 3, 2019

Previous ID SR-11888
Radar rdar://problem/57711759
Original Reporter zetasq (JIRA User)
Type Bug
Status Resolved
Resolution Done

Attachment: Download

Environment

Xcode 11.2.1

Additional Detail from JIRA
Votes 2
Component/s Compiler
Labels Bug, BUG, RIDICULOUS
Assignee None
Priority Medium

md5: 943fce10840a6e2b11c7e0ec895f9706

Issue Description:

The attached playground fails to compile in Xcode 11.2.1, but it compiles in Xcode 11.0.

@beccadax
Copy link
Contributor

beccadax commented Dec 6, 2019

@swift-ci create

@swift-ci
Copy link
Collaborator Author

swift-ci commented Dec 9, 2019

Comment by Gurami Jobava (JIRA)

brentdax (JIRA User)

I can confirm that after upgrading to 11.2.1 from 11.1, blocks in functionBuilders are failing to identify the types. But it works perfectly fine in Xcode 11.1

The following errors that I'm experiencing are:

Cannot convert return expression of type '' to return type ''
Generic parameter 'U' could not be inferred

@swift-ci
Copy link
Collaborator Author

Comment by Mikhail Isaev (JIRA)

It is still not fixed in Xcode 11.3.1![]( Common Apple) Stop breaking functionBuilder, it is needed not only for SwiftUI!

@DougGregor
Copy link
Member

It's working fine on master

@DougGregor
Copy link
Member

Also, for reference: the function builders feature is still in flux and is likely to change more before it becomes an official feature.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself
Projects
None yet
Development

No branches or pull requests

3 participants