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
matchingParams for those types is false, and the only thing that is different is type aliases inside.
Note that ListBuffer[A] extends Builder[A, List[A]], and Builder[A, List[A]] extends Growable[A], so I guess those type aliases should be considered =:=
The text was updated successfully, but these errors were encountered:
classGenericCompanion[+CC[X] <:GenTraversable[X]] {
protected[this] typeColl=CC[_]
}
classGenTraversableFactory[CC[X] <:GenTraversable[X] withGenericTraversableTemplate[X, CC]]
extendsGenericCompanion[CC] {
// Dotty does not consider Coll as a subtype of GenericTraversableTemplate here// Scalac does
}
ListBuffer
+=
does notmatch
Growable+=
before erasure.Here are their types:
matchingParams for those types is false, and the only thing that is different is type aliases inside.
Note that
ListBuffer[A] extends Builder[A, List[A]]
, andBuilder[A, List[A]] extends Growable[A]
, so I guess those type aliases should be considered=:=
The text was updated successfully, but these errors were encountered: