Swift 1.2b1: Header gen puts @autoclosure in the wrong place

Originator:rix.rob
Number:rdar://19775868 Date Originated:09-Feb-2015 09:02 PM
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode-Beta (6D520o)
Classification:Other Bug Reproducible:Always
 
Summary:
cf the prototype for &&:

@inline(__always) func &&<T : BooleanType, U : BooleanType>(lhs: T, rhs: @autoclosure () -> U) -> Bool


Steps to Reproduce:
1. Go look at the generated “header”’s prototype for something in stdlib which uses @autoclosure, e.g. &&.


Expected Results:
I expected @autoclosure to occur before the parameter label.


Actual Results:
it’s still placed after it.


Regression:
N/A

Notes:
N/A

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!