mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 08:31:29 +00:00
All bytecode text tests are run with stdlib in the classpath and only for JVM backend, therefore directives WITH_RUNTIME, TARGET_BACKEND, IGNORE_BACKEND are not needed
17 lines
275 B
Kotlin
Vendored
17 lines
275 B
Kotlin
Vendored
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
|