Am I the only one annoyed by the default `toString...
# announcements
j
Am I the only one annoyed by the default
toString()
implementation of `object`s inside a
sealed class
? ^^
d
Definitely agree wtih you here. A workaround is this in your
Direction
class:
Copy code
override fun toString() = this::class.simpleName?.takeIf { this::class.objectInstance != null } ?: super.toString()