[K2, MPP, JS] Fix a compiler crash on transitive common dependencies
^KT-57431 Fixed
This commit is contained in:
committed by
Space Team
parent
4e67d82cd3
commit
c14dcfce4f
+1
-2
@@ -2,9 +2,8 @@
|
||||
// !OPT_IN: kotlin.ExperimentalMultiplatform
|
||||
// IGNORE_BACKEND: WASM
|
||||
// IGNORE_BACKEND_K1: JVM, JVM_IR, JS, JS_IR, JS_IR_ES6, NATIVE
|
||||
// IGNORE_BACKEND_K2: JS_IR
|
||||
// KT-57181
|
||||
// IGNORE_BACKEND_K2: NATIVE
|
||||
// KT-57181
|
||||
// WITH_STDLIB
|
||||
|
||||
// MODULE: common
|
||||
|
||||
-2
@@ -1,7 +1,5 @@
|
||||
// IGNORE_BACKEND_K1: JS, JS_IR, JS_IR_ES6
|
||||
// IGNORE_BACKEND_K2: JS_IR
|
||||
// !LANGUAGE: +MultiPlatformProjects
|
||||
// TODO: K2 JS_IR Fail Reason: IrSimpleFunctionPublicSymbolImpl for kotlin/assertArrayEquals|-1961670457646030164[0] is already bound...
|
||||
|
||||
// MODULE: common1
|
||||
// TARGET_PLATFORM: Common
|
||||
|
||||
+2
-2
@@ -355,10 +355,9 @@ class ModuleStructureExtractorImpl(
|
||||
directives = moduleDirectives,
|
||||
languageVersionSettings = currentModuleLanguageVersionSettingsBuilder.build()
|
||||
)
|
||||
modules += testModule
|
||||
if (testModule.frontendKind != FrontendKinds.FIR ||
|
||||
!testModule.languageVersionSettings.supportsFeature(LanguageFeature.MultiPlatformProjects) ||
|
||||
testModule.dependsOnDependencies.isEmpty()
|
||||
modules.isEmpty()
|
||||
) {
|
||||
additionalSourceProviders.flatMapTo(filesOfCurrentModule) { additionalSourceProvider ->
|
||||
additionalSourceProvider.produceAdditionalFiles(
|
||||
@@ -371,6 +370,7 @@ class ModuleStructureExtractorImpl(
|
||||
}
|
||||
}
|
||||
}
|
||||
modules += testModule
|
||||
firstFileInModule = true
|
||||
resetModuleCaches()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user