Kotlin Facet: Do not restrict API version list by stdlib version

#KT-19955 Fixed
This commit is contained in:
Alexey Sedunov
2017-09-01 20:22:16 +03:00
parent 1e82b23321
commit c37489ab8b
@@ -243,10 +243,7 @@ class KotlinFacetEditorGeneralTab(
private fun restrictAPIVersions() {
with(editor.compilerConfigurable) {
val targetPlatform = editor.targetPlatformComboBox.selectedItem as TargetPlatformKind<*>?
val libraryLevel = getLibraryLanguageLevel(editorContext.module, editorContext.rootModel, targetPlatform)
val versionUpperBound = minOf(selectedLanguageVersion, libraryLevel)
restrictAPIVersions(versionUpperBound)
restrictAPIVersions(selectedLanguageVersion)
}
}