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
fun test(x: Int, y: Int): Int =
with (x + x) {
val xx = this
with (y + y) {
xx + this
}
}
fun box(): String {
assertEquals(10, test(2, 3))
assertEquals(18, test(4, 5))
return "OK"
}