Add test on nonMPP -> MPP dependency
This commit is contained in:
+7
@@ -0,0 +1,7 @@
|
||||
package test
|
||||
|
||||
expect class Expect {
|
||||
fun commonFun(): String
|
||||
}
|
||||
|
||||
fun topLevelCommonFun(): Int = 42
|
||||
+6
@@ -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 }
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package test
|
||||
|
||||
actual class Expect {
|
||||
actual fun commonFun(): String = ""
|
||||
|
||||
fun platformFun(): Int = 42
|
||||
}
|
||||
|
||||
fun topLevelPlatformFun(): String = ""
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
package test
|
||||
|
||||
fun main() {
|
||||
val e = Expect()
|
||||
|
||||
e.platformFun()
|
||||
e.commonFun()
|
||||
|
||||
topLevelPlatformFun()
|
||||
topLevelCommonFun()
|
||||
}
|
||||
Generated
+5
@@ -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/");
|
||||
|
||||
Reference in New Issue
Block a user