JVM_IR box tests for JDK9
This commit is contained in:
+16
@@ -0,0 +1,16 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
// WITH_RUNTIME
|
||||
|
||||
fun box(): String {
|
||||
val f = {}
|
||||
val sam = Runnable(f)
|
||||
val samJavaClass = sam::class.java
|
||||
|
||||
if (samJavaClass.simpleName != "")
|
||||
throw Exception("samJavaClass.simpleName='${samJavaClass.simpleName}'")
|
||||
|
||||
if (!samJavaClass.isAnonymousClass())
|
||||
throw Exception("!samJavaClass.isAnonymousClass(): '${samJavaClass.name}'")
|
||||
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user