Swift: Error on Array of Tuples
| Originator: | hoishing | ||
| Number: | rdar://18045799 | Date Originated: | 18-08-2014 |
| Status: | Open | Resolved: | |
| Product: | Xcode | Product Version: | 6, beta 5 |
| Classification: | Reproducible: | Always |
1. Cannot initialize an array of tuples by its short hand syntax
var arr = [(String, String)]() //error
2. Cannot use "append" method to append a tuple to an array of tuples
var arr = Array<(String, String)>()
arr.append(("a","b")) //error
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!