diff --git a/idea/src/org/jetbrains/kotlin/idea/facet/KotlinFacetEditorGeneralTab.kt b/idea/src/org/jetbrains/kotlin/idea/facet/KotlinFacetEditorGeneralTab.kt index f3f71cc4af0..093a32b035d 100644 --- a/idea/src/org/jetbrains/kotlin/idea/facet/KotlinFacetEditorGeneralTab.kt +++ b/idea/src/org/jetbrains/kotlin/idea/facet/KotlinFacetEditorGeneralTab.kt @@ -89,6 +89,14 @@ class KotlinFacetEditorGeneralTab( targetPlatformComboBox.addActionListener { updateCompilerConfigurable() } + + val commonCompilerArguments = compilerInfo.commonCompilerArguments + if (configuration != null && commonCompilerArguments != null) { + with(configuration.settings.versionInfo) { + commonCompilerArguments.languageVersion = languageLevel?.versionString + commonCompilerArguments.apiVersion = apiLevel?.versionString + } + } } internal fun updateCompilerConfigurable() {