Add JVM target bytecode version 14

#KT-38413 Fixed
This commit is contained in:
Alexander Udalov
2020-04-20 15:18:57 +02:00
parent 098a935aa7
commit 94346e8a03
7 changed files with 15 additions and 22 deletions
@@ -14,7 +14,6 @@
* limitations under the License.
*/
package org.jetbrains.kotlin.config
import org.jetbrains.kotlin.platform.TargetPlatformVersion
@@ -28,6 +27,7 @@ enum class JvmTarget(override val description: String) : TargetPlatformVersion {
JVM_11("11"),
JVM_12("12"),
JVM_13("13"),
JVM_14("14"),
;
val bytecodeVersion: Int by lazy {
@@ -39,6 +39,7 @@ enum class JvmTarget(override val description: String) : TargetPlatformVersion {
JVM_11 -> Opcodes.V11
JVM_12 -> Opcodes.V12
JVM_13 -> Opcodes.V12 + 1
JVM_14 -> Opcodes.V12 + 2
}
}