BuildFrom inference fails for Set subclass extending AbstractSet #13069
Labels
fixed in Scala 3
This issue does not exist in the Scala 3 compiler (https://github.com/lampepfl/dotty/)
library:collections
Milestone
This is a simplification of
Enumeration#ValueSet
which has the same issue.This compiles, but when un-commenting the
AbstractSet
parent it fails.When changing
MySet
toMySet[T]
and adjusting theimmutable.SetOps[String, immutable.Set, MySet]
parent toimmutable.SetOps[String, MySet, MySet[T]]
, things work also with theAbstractSet
parent.Maybe this is a puzzle that can be solved, I didn't manage so far.
The text was updated successfully, but these errors were encountered: