Add few tests on internal visibility in MPP
This commit is contained in:
@@ -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()
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
internal fun internalFromCommon() { }
|
||||
+4
@@ -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 }
|
||||
+3
@@ -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()
|
||||
}
|
||||
Reference in New Issue
Block a user