You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Xcode Version 11.4.1 (11E503a) (Swift 5.2)
macOS catalina 10.15.4
Additional Detail from JIRA
Votes
0
Component/s
Compiler
Labels
Bug
Assignee
None
Priority
Medium
md5: b9e9363e6c94a6abab1bf840516a03b0
duplicates:
SR-11628 Function Builder not working when only one value?
Issue Description:
The following code doesn't compile. shouldn't it ?
@_functionBuilderpublicstructSomeBuilder{publicstaticfunc buildBlock(_ children:Int...)->Bool{return true }}func yo(@SomeBuilder numbers:()->Bool){}yo{// this compiles12}yo{// this doesn't1// Cannot convert value of type 'Int' to closure result type 'Bool'}
Environment
Xcode Version 11.4.1 (11E503a) (Swift 5.2)
macOS catalina 10.15.4
Additional Detail from JIRA
md5: b9e9363e6c94a6abab1bf840516a03b0
duplicates:
Issue Description:
The following code doesn't compile. shouldn't it ?
This may be duplicate of https://bugs.swift.org/browse/SR-11628 - but not sure and that one is resolved already.
The text was updated successfully, but these errors were encountered: