mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 08:31:29 +00:00
This is done for JVM interoperability. There's still a member function String.get() and an extension function "get" on CharSequence #KT-1730 Fixed #KT-5389 Fixed
5 lines
89 B
Kotlin
5 lines
89 B
Kotlin
fun box(): String {
|
|
val sb = StringBuilder("OK")
|
|
return "${sb.get(0)}${sb[1]}"
|
|
}
|