STDLIB: null.toString() == "null"
This commit is contained in:
committed by
vvlevchenko
parent
ab7c879633
commit
c14813068b
@@ -37,7 +37,7 @@ public final class String : Comparable<String>, CharSequence {
|
||||
}
|
||||
|
||||
// TODO: in big Kotlin this operations are in kotlin.kotlin_builtins.
|
||||
private val kNullString = "<null>"
|
||||
private val kNullString = "null"
|
||||
|
||||
public operator fun kotlin.String?.plus(other: kotlin.Any?): kotlin.String =
|
||||
this?.plus(other?.toString() ?: kNullString) ?: other?.toString() ?: kNullString
|
||||
|
||||
Reference in New Issue
Block a user