JS: move inline test to box tests

This commit is contained in:
Alexey Andreev
2016-08-29 11:55:22 +03:00
parent b159049be8
commit efb82a044f
150 changed files with 1417 additions and 1430 deletions
@@ -0,0 +1,27 @@
package foo
// CHECK_NOT_CALLED: with_dbz3ex
fun f(x: Int): Int = x * 2
fun Int.f(): Int = this * 3
class A(var value: Int) {
companion object {
fun f(): Int = 5
}
fun f(): Int = value
}
fun test(a: A): Int =
// TODO: check that with second parameter is named f?
with (a) {
f(f() + A.f()).f()
}
fun box(): String {
assertEquals(90, test(A(10)))
return "OK"
}