# Explicitly calling auto-generated toString() in data class

**URL:** <https://discuss.kotlinlang.org/t/explicitly-calling-auto-generated-tostring-in-data-class/11170>\
**Category:** Support\
**Created:** [January 15, 2019, 1:01pm UTC](https://discuss.kotlinlang.org/t/explicitly-calling-auto-generated-tostring-in-data-class/11170 "2019-01-15T13:01:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sschuberth](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/sschuberth/32/8317_2.png) [@sschuberth](https://discuss.kotlinlang.org/u/sschuberth)\
**Post date:** [January 15, 2019, 1:01pm UTC](https://discuss.kotlinlang.org/t/explicitly-calling-auto-generated-tostring-in-data-class/11170/1 "2019-01-15T13:01:42Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Wasabi375](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/wasabi375/32/4741_2.png) [@Wasabi375](https://discuss.kotlinlang.org/u/Wasabi375)\
**Post date:** [January 15, 2019, 1:15pm UTC](https://discuss.kotlinlang.org/t/explicitly-calling-auto-generated-tostring-in-data-class/11170/2 "2019-01-15T13:15:02Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![sschuberth](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/sschuberth/32/8317_2.png) [@sschuberth](https://discuss.kotlinlang.org/u/sschuberth)\
**Post date:** [January 15, 2019, 1:31pm UTC](https://discuss.kotlinlang.org/t/explicitly-calling-auto-generated-tostring-in-data-class/11170/3 "2019-01-15T13:31:40Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Wasabi375](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/wasabi375/32/4741_2.png) [@Wasabi375](https://discuss.kotlinlang.org/u/Wasabi375)\
**Post date:** [January 15, 2019, 2:06pm UTC](https://discuss.kotlinlang.org/t/explicitly-calling-auto-generated-tostring-in-data-class/11170/4 "2019-01-15T14:06:24Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![sschuberth](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/sschuberth/32/8317_2.png) [@sschuberth](https://discuss.kotlinlang.org/u/sschuberth)\
**Post date:** [January 15, 2019, 3:41pm UTC](https://discuss.kotlinlang.org/t/explicitly-calling-auto-generated-tostring-in-data-class/11170/5 "2019-01-15T15:41:32Z")

</div>

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