Synchronized Any?.plus with JVM Kotlin
This commit is contained in:
@@ -59,7 +59,7 @@ public final class String : Comparable<String>, CharSequence {
|
||||
private val kNullString = "null"
|
||||
|
||||
public operator fun kotlin.String?.plus(other: kotlin.Any?): kotlin.String =
|
||||
this?.plus(other?.toString() ?: kNullString) ?: other?.toString() ?: kNullString
|
||||
(this?.toString() ?: kNullString).plus(other?.toString() ?: kNullString)
|
||||
|
||||
|
||||
public fun Any?.toString() = this?.toString() ?: kNullString
|
||||
Reference in New Issue
Block a user