Swift: Generic typealiases
| Originator: | rix.rob | ||
| Number: | rdar://17496102 | Date Originated: | 28-Jun-2014 12:12 PM |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | Xcode6-Beta2 (6A216f) |
| Classification: | Enhancement | Reproducible: | Always |
Summary: I want to be able to define generic typealiases. For example: typealias Cons<First, Rest> = (First, Rest) Hereafter I’d be able to use Cons<X, Y> to refer to a specific instance of this tuple type family. Steps to Reproduce: Try to compile the above typealias. Expected Results: I didn’t actually expect it to work, but I would like to be able to expect it to work. Actual Results: It didn’t work, of course. Regression: N/A Notes: This would go a long ways to being able to use tuples as first-class types.
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!