STDLIB: null.toString() == "null"

This commit is contained in:
Vasily Levchenko
2017-02-21 12:02:28 +03:00
committed by vvlevchenko
parent ab7c879633
commit c14813068b
+1 -1
View File
@@ -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