You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Perhaps the same kind of mapping could be applied to custom types automatically, or at least machinery exposed that custom types can buy into to get this syntax.
The text was updated successfully, but these errors were encountered:
Yep. Nothing in Swift is covariant at the moment besides the primary collection types, because it isn't always correct to allow downcasting (or upcasting). A simple example is a struct that refers to a reference-semantics NSArray, where it assumes everything in the array matches the generic type.
Additional Detail from JIRA
md5: 9017f57f186bfe5c62b488e8053e40a6
relates to:
Issue Description:
Perhaps the same kind of mapping could be applied to custom types automatically, or at least machinery exposed that custom types can buy into to get this syntax.
The text was updated successfully, but these errors were encountered: