mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 08:31:26 +00:00
19 lines
292 B
Kotlin
Vendored
19 lines
292 B
Kotlin
Vendored
// WITH_RUNTIME
|
|
|
|
fun test() {
|
|
var s = ""
|
|
for (c in "testString") {
|
|
s += c
|
|
}
|
|
for (c in StringBuilder("testStringBuilder")) {
|
|
s += c
|
|
}
|
|
for (c in "testCharSequence".apply<CharSequence>{}) {
|
|
s += c
|
|
}
|
|
}
|
|
|
|
// 0 iterator
|
|
// 0 hasNext
|
|
// 0 nextChar
|