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,24 @@
// See KT-7674
package foo
class A(val a: Int) {
val plus: (Int)->Int
get() {
log("get plus fun")
return {
log("do plus")
a + it
}
}
}
inline fun <T : Any> id(x: T): T {
log(x.toString())
return x
}
fun box(): String {
assertEquals(3, A(id(1)).plus(id(2)))
assertEquals("1;get plus fun;2;do plus;", pullLog())
return "OK"
}