An expected return type can influence overload resolution: def f(x: Int) = 1 def f(xs: Int*) = "2" f(1): Int // 1 f(1): String // "2"
-
-
Replying to @propensive
.
@propensive and so, overloading is the root of all evil. Or was it implicit parameters? Just kidding, equals is, of course :-)1 reply 0 retweets 0 likes -
Replying to @propensive
.
@propensive I read "Elvis is definitely a multi-rooted thing" & strange images of old fat gods singing rock florished in my mind. Bed time!1 reply 0 retweets 1 like
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.