Explicitly calling auto-generated toString() in data class


#1

If I’ve overridden toString() in a data class, is it still possible to explicitly call the standard auto-generated toString() implementation from within the same class? I’ve tried with super.toString() but that does not compile.


#2

It’s not possible. But it would be great if it was.


#3

Is there already an issue filed that I can upvote to track this request?


#4

Not that I know of and I couldn’t find one.


#5

I’ve created an issue now: https://youtrack.jetbrains.com/issue/KT-29298