plus所在位置是kotlin.text.plus,其相关用法介绍如下。

用法:

operator fun Char.plus(other: String): String

连接这个 Char 和一个字符串。

例子:

import java.util.*
import kotlin.test.*

fun main(args: Array<String>) {
//sampleStart
val value = 'a' + "bcd"
println(value) // abcd
//sampleEnd
}

输出:

abcd