Hacker News new | ask | show | jobs
by continuational 3688 days ago
You can't have co/contravariance without subtyping. Remove the extends and the implements keyword from Java, and you're rid of it. You can still create instances of Fruit using annonymous classes.