We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
3.1.1-RC2
case class Year(value: Int) extends AnyVal with Id { type Value = Int } with Ordered[Year] { ... }
Early definitions are not supported; use trait parameters instead
Compiles without error.
Workaround:
trait WrappedId extends Id { type Value = Int } case class Year(value: Int) extends AnyVal with WrappedId with Ordered[Year] { ... }
The text was updated successfully, but these errors were encountered:
Avoid misleading error message
c615220
The error message falsely referred to missing support for early definitions in the example, but none were present. Fixes scala#14326
2983865
36d94f3
odersky
Successfully merging a pull request may close this issue.
Compiler version
3.1.1-RC2
Minimized code
Output
Expectation
Compiles without error.
Workaround:
The text was updated successfully, but these errors were encountered: