Mpp: fix production internals not visible from tests in platform modules
Caused by change in mpp resolve Happened in platform modules that have expectedBy dependencies #KT-24729 Fixed
This commit is contained in:
@@ -443,6 +443,8 @@ class PlatformModuleInfo(
|
||||
|
||||
override fun dependencies() = platformModule.dependencies()
|
||||
|
||||
override fun modulesWhoseInternalsAreVisible() = containedModules.flatMap { it.modulesWhoseInternalsAreVisible() }
|
||||
|
||||
override val name: Name
|
||||
get() = Name.special("<Platform module ${platformModule.displayedName} including ${commonModules.map { it.displayedName }}>")
|
||||
|
||||
|
||||
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
package foo
|
||||
|
||||
internal fun commonF() {}
|
||||
internal class CommonC
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
package foo
|
||||
|
||||
fun useС() {
|
||||
commonF()
|
||||
CommonC()
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
package foo
|
||||
|
||||
internal fun jsF() {}
|
||||
internal class JsC
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package foo
|
||||
|
||||
fun use() {
|
||||
commonF()
|
||||
CommonC()
|
||||
|
||||
jsF()
|
||||
JsC()
|
||||
}
|
||||
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
package foo
|
||||
|
||||
internal fun jvmF() {}
|
||||
internal class JvmC
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package foo
|
||||
|
||||
fun use() {
|
||||
commonF()
|
||||
CommonC()
|
||||
|
||||
jvmF()
|
||||
JvmC()
|
||||
}
|
||||
Generated
+5
@@ -84,6 +84,11 @@ public class MultiPlatformHighlightingTestGenerated extends AbstractMultiPlatfor
|
||||
runTest("idea/testData/multiModuleHighlighting/multiplatform/internal/");
|
||||
}
|
||||
|
||||
@TestMetadata("internalDependencyFromTests")
|
||||
public void testInternalDependencyFromTests() throws Exception {
|
||||
runTest("idea/testData/multiModuleHighlighting/multiplatform/internalDependencyFromTests/");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedClassWithoutImpl")
|
||||
public void testNestedClassWithoutImpl() throws Exception {
|
||||
runTest("idea/testData/multiModuleHighlighting/multiplatform/nestedClassWithoutImpl/");
|
||||
|
||||
Reference in New Issue
Block a user