Unfortunately the ObjC API doesn’t use generics for its dictionary: @property (readonly, copy) NSDictionary *allHeaderFields;
So we need to get this fixed on Darwin Foundation first. I filed a bug to track this internally. - Tony > On Mar 15, 2016, at 10:42 AM, Daniel Eggert via swift-corelibs-dev > <swift-corelibs-dev@swift.org> wrote: > > On 15 Mar 2016, at 16:16, Daniel Eggert via swift-corelibs-dev > <swift-corelibs-dev@swift.org <mailto:swift-corelibs-dev@swift.org>> wrote: >> >> The allHeaderFields in >> >> public class NSHTTPURLResponse : NSURLResponse { >> [...] >> public let allHeaderFields: [NSObject : AnyObject] >> } >> >> should have been [String : String] >> >> The initialiser has the correct [String : String] type, though. >> >> Somehow Apple missed this in their API, too. What's the procedure to get >> this changed / fixed? >> >> /Daniel > > > I've changed it as part of this pull request: > > https://github.com/apple/swift-corelibs-foundation/pull/287 > <https://github.com/apple/swift-corelibs-foundation/pull/287> > > I'm happy to change it back if need be. > > /Daniel > > _______________________________________________ > swift-corelibs-dev mailing list > swift-corelibs-dev@swift.org <mailto:swift-corelibs-dev@swift.org> > https://lists.swift.org/mailman/listinfo/swift-corelibs-dev > <https://lists.swift.org/mailman/listinfo/swift-corelibs-dev>
_______________________________________________ swift-corelibs-dev mailing list swift-corelibs-dev@swift.org https://lists.swift.org/mailman/listinfo/swift-corelibs-dev