Files
kotlin-fork/js/js.translator/testData/inlineStdlib/cases/simple.kt
T
2015-03-06 21:36:19 +03:00

19 lines
235 B
Kotlin

package foo
// CHECK_CONTAINS_NO_CALLS: test
var counter = 0
fun test(a: Int) {
a.times {
counter += 1
}
}
fun box(): String {
assertEquals(0, counter)
test(5)
assertEquals(5, counter)
return "OK"
}