Add few tests on internal visibility in MPP

This commit is contained in:
Dmitry Savvinov
2019-05-22 11:08:21 +03:00
parent 43ef0ffa50
commit c50eeb3edb
11 changed files with 45 additions and 8 deletions
@@ -0,0 +1 @@
internal fun internalFromCommon() { }
@@ -0,0 +1,4 @@
MODULE common { platform=[JVM, JS, Native]; root=common }
MODULE jvm { platform=[JVM]; root=jvm }
jvm -> common { kind=DEPENDS_ON }
@@ -0,0 +1,3 @@
fun usage() {
internalFromCommon()
}
@@ -0,0 +1 @@
internal fun internalFromCommon() { }
@@ -0,0 +1,4 @@
MODULE common { platform=[JVM, JS, Native]; root=common }
MODULE jvm { platform=[JVM]; root=jvmMain; testRoot=jvmTest }
jvm -> common { kind=DEPENDS_ON }
@@ -0,0 +1,3 @@
fun usageInTest() {
internalFromCommon()
}
@@ -0,0 +1 @@
MODULE module { platform=[JVM]; root=moduleMain; testRoot=moduleTest }
@@ -0,0 +1 @@
internal fun internalFromMain() { }
@@ -0,0 +1,3 @@
fun usage() {
internalFromMain()
}