Introduce language version 2.0 and associate K2 compiler with it

This commit is contained in:
Mikhail Glukhikh
2022-11-28 18:20:10 +01:00
parent afe1150aec
commit 3dc05f4ec5
84 changed files with 233 additions and 151 deletions
@@ -146,7 +146,7 @@ class KotlinJpsBuildTestIncremental : KotlinJpsBuildTest() {
// Try to set Language version to Stable+2 (there is no promises that metadata will be supported)
val experimentalLevelVersion: LanguageVersion
try {
experimentalLevelVersion = LanguageVersion.values()[LanguageVersion.LATEST_STABLE.ordinal+2]
experimentalLevelVersion = LanguageVersion.values()[LanguageVersion.LATEST_STABLE.ordinal + 2]
} catch (e: ArrayIndexOutOfBoundsException) {
// there is no Stable+2 version for now, skiping test
return