[CHERRY PICKED FROM IJ] [kotlin] configuration: allow API version 1.3 with 1.6.x compiler
Starting from 1.6.0 the compiler supports three previous API versions, i.e., 1.3, 1.4, 1.5. Note that it's only about API versions, two previous language versions are supported as previously. See KT-49006 for details. ^KTIJ-19978 Fixed GitOrigin-RevId: e1ba99ac25135959d8b81287850798a222643c88 Original commit: https://github.com/JetBrains/intellij-community/commit/d256c4653ab5aa730e522d282aed49a83f0c99f8
This commit is contained in:
committed by
Nikita Bobko
parent
a4bf7c9772
commit
0f0fa4736a
@@ -45,7 +45,7 @@ sealed class TargetPlatformKind<out Version : TargetPlatformVersion>(
|
||||
}
|
||||
|
||||
sealed class VersionView : DescriptionAware {
|
||||
abstract val version: LanguageVersion
|
||||
abstract val version: LanguageOrApiVersion
|
||||
|
||||
object LatestStable : VersionView() {
|
||||
override val version: LanguageVersion = LanguageVersion.LATEST_STABLE
|
||||
@@ -54,7 +54,7 @@ sealed class VersionView : DescriptionAware {
|
||||
get() = "Latest stable (${version.versionString})"
|
||||
}
|
||||
|
||||
class Specific(override val version: LanguageVersion) : VersionView() {
|
||||
class Specific(override val version: LanguageOrApiVersion) : VersionView() {
|
||||
override val description: String
|
||||
get() = version.description
|
||||
|
||||
|
||||
Reference in New Issue
Block a user