Support interpretation of String's plus method and its extension version

This commit is contained in:
Ivan Kylchik
2020-06-10 23:04:07 +03:00
parent 94e36411fa
commit 9542eb36ec
5 changed files with 36 additions and 21 deletions
@@ -71,6 +71,7 @@ fun generateMap(): String {
"""
private fun Any.defaultToString(): String {
return when (this) {
is Lambda -> this.toString()
is State -> "${'$'}{this.irClass.name}@" + System.identityHashCode(this).toString(16).padStart(8, '0')
else -> this.toString().replaceAfter("@", System.identityHashCode(this).toString(16).padStart(8, '0'))
}