Hi, this may be strange question. Where can I find...
# announcements
j
Hi, this may be strange question. Where can I find
String#toString
implementation? I can see in Java
Copy code
public String toString() {
        return this;
    }
but I can’t see this in Kotlin.
Copy code
public class String : Comparable<String>, CharSequence {
    companion object {}
    
    /**
     * Returns a string obtained by concatenating this string with the string representation of the given [other] object.
     */
    public operator fun plus(other: Any?): String

    public override val length: Int

    public override fun get(index: Int): Char

    public override fun subSequence(startIndex: Int, endIndex: Int): CharSequence

    public override fun compareTo(other: String): Int
}
I can’t find extension function either…
k
It's probably just compiler margic since it's all buildin.