Add jvm target 10 tests on jdk 10

This commit is contained in:
Mikhael Bogdanov
2018-02-16 13:42:21 +01:00
parent 2de0b2a9ef
commit 31c63dea50
4 changed files with 12 additions and 2 deletions
@@ -27,7 +27,11 @@ enum class JvmTarget(override val description: String) : TargetPlatformVersion {
when (this) {
JVM_1_6 -> Opcodes.V1_6
JVM_1_8 ->
if (java.lang.Boolean.valueOf(System.getProperty("kotlin.test.substitute.bytecode.1.8.to.1.9"))) Opcodes.V1_9 else Opcodes.V1_8
when {
java.lang.Boolean.valueOf(System.getProperty("kotlin.test.substitute.bytecode.1.8.to.10")) -> Opcodes.V9 + 1
java.lang.Boolean.valueOf(System.getProperty("kotlin.test.substitute.bytecode.1.8.to.1.9")) -> Opcodes.V9
else -> Opcodes.V1_8
}
}
}