JS: added inline stdlib cases

This commit is contained in:
Alexey Tsvetkov
2015-03-04 17:47:23 +03:00
parent 38efec6886
commit 53dfd77d31
10 changed files with 263 additions and 0 deletions
@@ -0,0 +1,19 @@
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"
}