> On Sep 9, 2016, at 8:05 PM, Rick Mann via swift-users <[email protected]> 
> wrote:
> 
> I figured it out. The real problem is that .json accepts AnyObject, and the 
> Dictionary is not AnyObject (not sure what this change is, since it worked in 
> Swift 2). Anyway, that confused the type inference, which resulted in the red 
> herring error message about the closure assignment.

What changed is Objective-C bridging. Previously the compiler could convert 
Dictionary to NSDictionary to AnyObject. Now that path is no longer implicitly 
available.


-- 
Greg Parker     [email protected] <mailto:[email protected]>     Runtime 
Wrangler


_______________________________________________
swift-users mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-users

Reply via email to