JS: move inline test to box tests
This commit is contained in:
+16
@@ -0,0 +1,16 @@
|
||||
package foo
|
||||
|
||||
class A {
|
||||
var x = 23
|
||||
}
|
||||
|
||||
inline fun bar(value: Int, a: A): Int {
|
||||
a.x = 42
|
||||
return value
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
val a = A()
|
||||
assertEquals(23, bar(a.x, a))
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user