[swift-evolution] Custom Covariance/Contravariance
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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-evolution