Files
kotlin/compiler/testData/codegen/boxWithStdlib/strings/kt5389_stringBuilderGet.kt
Alexander Udalov 4d95bcfc7e Rename CharSequence.get to charAt
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
2014-11-27 20:38:18 +03:00

5 lines
89 B
Kotlin

fun box(): String {
val sb = StringBuilder("OK")
return "${sb.get(0)}${sb[1]}"
}