You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
% rcscala
Welcome to Scala version 2.10.0-RC5 (JavaHotSpot(TM) 64-BitServerVM, Java1.7.0_10).
Type in expressions to have them evaluated.
Type:help for more information.
scala>deff(x: scala.collection.GenSeqLike[_,_]):AnyRef= x
f: (x: scala.collection.GenSeqLike[_, _])AnyRef
scala> f(Nil).getClass
res0:Class[_ <:AnyRef] =classscala.collection.parallel.package$$anon$2
@adriaanm said (edited on Jan 10, 2013 9:57:12 PM UTC):
Jason said:
I was recently thinking how useful such a facility would be for extension methods: if the implicit went from Wrapped => (@foo Wrapper) and (@foo A) !<:< Any, we might avoid the "implicit Any/AnyRef disaster" @paulp brought up on -internals recently. But perhaps a more mundane solution is wiser...
See https://groups.google.com/forum/?fromgroups=#!topic/scala-internals/cwEyQCmjX24 for some elaboration.
The text was updated successfully, but these errors were encountered: