Basic -Xrelease option support
#KT-29974 Fixed
This commit is contained in:
+16
@@ -0,0 +1,16 @@
|
||||
// CHECK_BYTECODE_TEXT
|
||||
// 2 CHECKCAST java/lang/constant/Constable
|
||||
// 1 LOCALVARIABLE constable Ljava/lang/constant/Constable;
|
||||
|
||||
import java.lang.invoke.*
|
||||
|
||||
fun cond() = true
|
||||
|
||||
fun test(mh: MethodHandle?, mt: MethodType?) {
|
||||
val constable = if (cond()) mh else mt
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
test(null, null)
|
||||
return "OK"
|
||||
}
|
||||
Vendored
+17
@@ -0,0 +1,17 @@
|
||||
// RELEASE: 10
|
||||
// CHECK_BYTECODE_TEXT
|
||||
// 0 CHECKCAST java/lang/constant/Constable
|
||||
// 0 LOCALVARIABLE constable Ljava/lang/constant/Constable;
|
||||
|
||||
import java.lang.invoke.*
|
||||
|
||||
fun cond() = true
|
||||
|
||||
fun test(mh: MethodHandle?, mt: MethodType?) {
|
||||
val z = if (cond()) mh else mt
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
test(null, null)
|
||||
return "OK"
|
||||
}
|
||||
Vendored
+17
@@ -0,0 +1,17 @@
|
||||
// RELEASE: 11
|
||||
// CHECK_BYTECODE_TEXT
|
||||
// 0 CHECKCAST java/lang/constant/Constable
|
||||
// 0 LOCALVARIABLE constable Ljava/lang/constant/Constable;
|
||||
|
||||
import java.lang.invoke.*
|
||||
|
||||
fun cond() = true
|
||||
|
||||
fun test(mh: MethodHandle?, mt: MethodType?) {
|
||||
val z = if (cond()) mh else mt
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
test(null, null)
|
||||
return "OK"
|
||||
}
|
||||
Vendored
+17
@@ -0,0 +1,17 @@
|
||||
// RELEASE: 12
|
||||
// CHECK_BYTECODE_TEXT
|
||||
// 2 CHECKCAST java/lang/constant/Constable
|
||||
// 1 LOCALVARIABLE constable Ljava/lang/constant/Constable;
|
||||
|
||||
import java.lang.invoke.*
|
||||
|
||||
fun cond() = true
|
||||
|
||||
fun test(mh: MethodHandle?, mt: MethodType?) {
|
||||
val constable = if (cond()) mh else mt
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
test(null, null)
|
||||
return "OK"
|
||||
}
|
||||
Vendored
+17
@@ -0,0 +1,17 @@
|
||||
// RELEASE: 13
|
||||
// CHECK_BYTECODE_TEXT
|
||||
// 2 CHECKCAST java/lang/constant/Constable
|
||||
// 1 LOCALVARIABLE constable Ljava/lang/constant/Constable;
|
||||
|
||||
import java.lang.invoke.*
|
||||
|
||||
fun cond() = true
|
||||
|
||||
fun test(mh: MethodHandle?, mt: MethodType?) {
|
||||
val constable = if (cond()) mh else mt
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
test(null, null)
|
||||
return "OK"
|
||||
}
|
||||
Vendored
+17
@@ -0,0 +1,17 @@
|
||||
// RELEASE: 14
|
||||
// CHECK_BYTECODE_TEXT
|
||||
// 2 CHECKCAST java/lang/constant/Constable
|
||||
// 1 LOCALVARIABLE constable Ljava/lang/constant/Constable;
|
||||
|
||||
import java.lang.invoke.*
|
||||
|
||||
fun cond() = true
|
||||
|
||||
fun test(mh: MethodHandle?, mt: MethodType?) {
|
||||
val constable = if (cond()) mh else mt
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
test(null, null)
|
||||
return "OK"
|
||||
}
|
||||
Vendored
+17
@@ -0,0 +1,17 @@
|
||||
// RELEASE: 15
|
||||
// CHECK_BYTECODE_TEXT
|
||||
// 2 CHECKCAST java/lang/constant/Constable
|
||||
// 1 LOCALVARIABLE constable Ljava/lang/constant/Constable;
|
||||
|
||||
import java.lang.invoke.*
|
||||
|
||||
fun cond() = true
|
||||
|
||||
fun test(mh: MethodHandle?, mt: MethodType?) {
|
||||
val constable = if (cond()) mh else mt
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
test(null, null)
|
||||
return "OK"
|
||||
}
|
||||
Vendored
+17
@@ -0,0 +1,17 @@
|
||||
// RELEASE: 16
|
||||
// CHECK_BYTECODE_TEXT
|
||||
// 2 CHECKCAST java/lang/constant/Constable
|
||||
// 1 LOCALVARIABLE constable Ljava/lang/constant/Constable;
|
||||
|
||||
import java.lang.invoke.*
|
||||
|
||||
fun cond() = true
|
||||
|
||||
fun test(mh: MethodHandle?, mt: MethodType?) {
|
||||
val constable = if (cond()) mh else mt
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
test(null, null)
|
||||
return "OK"
|
||||
}
|
||||
Vendored
+17
@@ -0,0 +1,17 @@
|
||||
// RELEASE: 17
|
||||
// CHECK_BYTECODE_TEXT
|
||||
// 2 CHECKCAST java/lang/constant/Constable
|
||||
// 1 LOCALVARIABLE constable Ljava/lang/constant/Constable;
|
||||
|
||||
import java.lang.invoke.*
|
||||
|
||||
fun cond() = true
|
||||
|
||||
fun test(mh: MethodHandle?, mt: MethodType?) {
|
||||
val constable = if (cond()) mh else mt
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
test(null, null)
|
||||
return "OK"
|
||||
}
|
||||
Vendored
+17
@@ -0,0 +1,17 @@
|
||||
// RELEASE: 8
|
||||
// CHECK_BYTECODE_TEXT
|
||||
// 0 CHECKCAST java/lang/constant/Constable
|
||||
// 0 LOCALVARIABLE constable Ljava/lang/constant/Constable;
|
||||
|
||||
import java.lang.invoke.*
|
||||
|
||||
fun cond() = true
|
||||
|
||||
fun test(mh: MethodHandle?, mt: MethodType?) {
|
||||
val z = if (cond()) mh else mt
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
test(null, null)
|
||||
return "OK"
|
||||
}
|
||||
Vendored
+17
@@ -0,0 +1,17 @@
|
||||
// RELEASE: 9
|
||||
// CHECK_BYTECODE_TEXT
|
||||
// 0 CHECKCAST java/lang/constant/Constable
|
||||
// 0 LOCALVARIABLE constable Ljava/lang/constant/Constable;
|
||||
|
||||
import java.lang.invoke.*
|
||||
|
||||
fun cond() = true
|
||||
|
||||
fun test(mh: MethodHandle?, mt: MethodType?) {
|
||||
val z = if (cond()) mh else mt
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
test(null, null)
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user