-
Website
http://www.drmaciver.com -
Original page
http://www.drmaciver.com/2008/08/a-curious-fact-about-overloading-in-scala/ -
Subscribe
All Comments -
Community
-
Top Commenters
-
llimllib
1 comment · 2 points
-
Chris Vest
1 comment · 1 points
-
David R. MacIver
1 comment · 1 points
-
-
Popular Threads
I'm guessing the original intent was for overloading based on just different return types not to be legal, but then this issue came up, and now its the status quo.
It's and covariant return types are the only cases of it actually being used in the Java implementation, but the Java virtual machine spec second edition documents this behaviour and predates both generics and covariant return.