It would be nice if it was possible to override automatically generated members of @data classes.
It will then be possible to compile something like this bare example:
@data class A(a: Int, b: Int) {
def toString(): String = {
"foo"
}
def copy()(implicit a: Allocator): A = {
A(a, b)
}
}
It would be nice if it was possible to override automatically generated members of
@data
classes. It will then be possible to compile something like this bare example: