Kotlin Facet: Do not restrict API version list by stdlib version
#KT-19955 Fixed
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user