Closed
Description
Compiler version
3.1.1-RC2
Minimized code
case class Year(value: Int) extends AnyVal
with Id { type Value = Int }
with Ordered[Year] {
...
}
Output
Early definitions are not supported; use trait parameters instead
Expectation
Compiles without error.
Workaround:
trait WrappedId extends Id { type Value = Int }
case class Year(value: Int) extends AnyVal
with WrappedId
with Ordered[Year] {
...
}