Add test on nonMPP -> MPP dependency

This commit is contained in:
Dmitry Savvinov
2019-07-30 12:33:13 +03:00
parent 79313037d1
commit ddb685a8f9
5 changed files with 38 additions and 0 deletions
@@ -0,0 +1,7 @@
package test
expect class Expect {
fun commonFun(): String
}
fun topLevelCommonFun(): Int = 42
@@ -0,0 +1,6 @@
MODULE commonMpp { platform=[JVM, JS, Native] }
MODULE jvmMpp { platform=[JVM] }
MODULE nonMpp { platform=[JVM] }
nonMpp -> jvmMpp { kind=DEPENDENCY }
jvmMpp -> commonMpp { kind=DEPENDS_ON }
@@ -0,0 +1,9 @@
package test
actual class Expect {
actual fun commonFun(): String = ""
fun platformFun(): Int = 42
}
fun topLevelPlatformFun(): String = ""
@@ -0,0 +1,11 @@
package test
fun main() {
val e = Expect()
e.platformFun()
e.commonFun()
topLevelPlatformFun()
topLevelCommonFun()
}
@@ -114,6 +114,11 @@ public class MultiplatformAnalysisTestGenerated extends AbstractMultiplatformAna
runTest("idea/testData/multiplatform/supertypes/");
}
@TestMetadata("transitiveDependencyOnCommonSourceSets")
public void testTransitiveDependencyOnCommonSourceSets() throws Exception {
runTest("idea/testData/multiplatform/transitiveDependencyOnCommonSourceSets/");
}
@TestMetadata("typeAliasToExpectClassExplicitReference")
public void testTypeAliasToExpectClassExplicitReference() throws Exception {
runTest("idea/testData/multiplatform/typeAliasToExpectClassExplicitReference/");