Files
kotlin/compiler/testData/codegen/bytecodeText/forLoop/forInCharSequence.kt
2018-12-21 16:20:45 +01:00

18 lines
301 B
Kotlin
Vendored

// IGNORE_BACKEND: JVM_IR
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