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() {
|
private fun restrictAPIVersions() {
|
||||||
with(editor.compilerConfigurable) {
|
with(editor.compilerConfigurable) {
|
||||||
val targetPlatform = editor.targetPlatformComboBox.selectedItem as TargetPlatformKind<*>?
|
restrictAPIVersions(selectedLanguageVersion)
|
||||||
val libraryLevel = getLibraryLanguageLevel(editorContext.module, editorContext.rootModel, targetPlatform)
|
|
||||||
val versionUpperBound = minOf(selectedLanguageVersion, libraryLevel)
|
|
||||||
restrictAPIVersions(versionUpperBound)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user