-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Labels
area:refchecksbacklogNo work planned on this by the core team for the time being.No work planned on this by the core team for the time being.compat:scala2itype:bugitype:questionstat:needs spec
Description
class Seq
trait IterableOnceOps {
def toSeq: Seq = new Seq
}
trait IterableOps extends IterableOnceOps
trait SeqOps extends IterableOps {
def toSeq: Seq
}
class Foo extends SeqOps
The code snippet above compiles with Scala2 but not Dotty:
-- Error: tests/allan/Test.scala:53:6 ------------------------------------------
53 |class Foo extends SeqOps
| ^
| class Foo needs to be abstract, since def toSeq: => Seq is not defined
one error found
This pattern is used in the 2.13 collection library
Metadata
Metadata
Assignees
Labels
area:refchecksbacklogNo work planned on this by the core team for the time being.No work planned on this by the core team for the time being.compat:scala2itype:bugitype:questionstat:needs spec