Commits

John McCall committed ef4fb36c50e
Only permit checked downcasts of an existential to a subtype, not to an arbitrary type that's convertible to the existential. Arbitrary conversions aren't necessarily reversible. The specific test case in rdar://16041990 involves a downcast to String instead of NSString; that's supportable in principle, but it's at the very least a significant feature, and clearly there are non-reversible conversions out there. Swift SVN r14028