[swift-corelibs-dev] Wrong type in NSHTTPURLResponse
Tony Parker
anthony.parker at apple.com
Tue Mar 15 12:47:07 CDT 2016
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 at swift.org> wrote:
>
> On 15 Mar 2016, at 16:16, Daniel Eggert via swift-corelibs-dev <swift-corelibs-dev at swift.org <mailto:swift-corelibs-dev at 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 at swift.org <mailto:swift-corelibs-dev at swift.org>
> https://lists.swift.org/mailman/listinfo/swift-corelibs-dev <https://lists.swift.org/mailman/listinfo/swift-corelibs-dev>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-corelibs-dev/attachments/20160315/a715f3a6/attachment.html>
More information about the swift-corelibs-dev
mailing list