Swift: extension of a specialization of a generic type
| Originator: | hello | ||
| Number: | rdar://21434016 | Date Originated: | |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | |
| Classification: | New Feature | Reproducible: |
Summary:
Proposed sample syntax:
typealias JSONArchive = [String: AnyObject]
extension JSONArchive {
func magicFilter(){
print("blah")
}
}
Related to 21416915
Steps to Reproduce:
Add the above description to a playground compatible with Swift 2.0
Expected Results:
No compile time errors
Actual Results:
error: cannot extend a specialization of 'Dictionary'
Version:
Xcode 7.0/Swift 2.0
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!