JS backend: tests for KT-6323 KotlinJS library modules
This commit is contained in:
+2
@@ -0,0 +1,2 @@
|
||||
module1->
|
||||
main->module1
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
fun box(): String {
|
||||
|
||||
assertEquals("A: invoked from module", f("A"))
|
||||
assertEquals(10, A(10).x)
|
||||
|
||||
return "OK"
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
public fun f(s: String): String = "${s}: invoked from module"
|
||||
|
||||
public class A(val x: Int)
|
||||
Reference in New Issue
Block a user