[swift-evolution] Custom Covariance/Contravariance
Peter Livesey
pdlivesey at gmail.com
Fri May 20 13:34:32 CDT 2016
I'm working on a proposal for adding covariance and contravariance to
custom classes. For instance:
let a = MyBag<Dog>()
let b: MyBag<Animal> = a
I cannot find any threads which have discussed this yet, but maybe I'm
missing something. Has this been discussed?
If not, I'll continue with my proposal and have something more soon.
Thanks,
-Peter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160520/a9912752/attachment.html>
More information about the swift-evolution
mailing list