JS test: added multi-module inline tests
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
package utils
|
||||
|
||||
public class A(public val x: Int) {
|
||||
inline
|
||||
public fun plus(y: Int): Int = x + y
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
import utils.*
|
||||
|
||||
// CHECK_CONTAINS_NO_CALLS: test
|
||||
|
||||
fun test(a: A, y: Int): Int = a.plus(y)
|
||||
|
||||
fun box(): String {
|
||||
assertEquals(5, test(A(2), 3))
|
||||
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user