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
As @zifeo pointed out, this used to compile under > 1.4.11 but fails now.
trait CustomEnumEntry extends IntEnumEntry { val value: Int val name: String } trait CustomEnum[T <: CustomEnumEntry] extends IntEnum[T] { def apply(name: String): T = values.find(_.name == name).get } trait CustomEnumComparable[T <: CustomEnumEntry] { this: T => def >=(that: T): Boolean = this.value >= that.value } sealed abstract class TestEnum private (val value: Int, val name: String) extends CustomEnumEntry with CustomEnumComparable[TestEnum] object TestEnum extends CustomEnum[TestEnum] { val values = findValues case object A extends TestEnum(10, "a") case object B extends TestEnum(20, "b") }
The text was updated successfully, but these errors were encountered:
Fixed by #67
Sorry, something went wrong.
No branches or pull requests
As @zifeo pointed out, this used to compile under > 1.4.11 but fails now.
The text was updated successfully, but these errors were encountered: