Unable to append a tuple to a Swift array

Originator:zonble
Number:rdar://17516640 Date Originated:
Status:Open Resolved:
Product:Developer Tools Product Version:
Classification: Reproducible:
 
Summary:
While programming swift, if we create an array which contains a series of tuples, we can append another tuple into the array by calling the “+=“ operator but not able using the “append” method.

Steps to Reproduce:
For example, we have code like this

    var a = [(1,2), (3,4)]
    a += (5,6)

It works fine. However, if we do this

    var b = (7,8)
    a.append(b)

The compiler says “Missing argument for parameter #2 in call”.

The screen shot is attached.

Expected Results:
The "append" method should work.

Actual Results:
But it does not work.

Version:
Xcode 6.0 beta 2
Mac OS X 10.9.3

Notes:


Configuration:


Attachments:
'Screen Shot 2014-07-01 at 12.14.20 PM.png' was successfully uploaded.

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!