Support JVM 8 target on Android
This commit is contained in:
+2
-1
@@ -2,6 +2,7 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
// JVM_TARGET: 1.8
|
||||
// WITH_RUNTIME
|
||||
package test
|
||||
|
||||
interface Z {
|
||||
private fun privateFun() = { "OK" }
|
||||
@@ -49,7 +50,7 @@ fun box(): String {
|
||||
|
||||
val nested = Z.Nested::class.java
|
||||
val enclosingClass = nested.enclosingClass!!
|
||||
if (enclosingClass.name != "Z") return "fail 9: ${enclosingClass.name}"
|
||||
if (enclosingClass.name != "test.Z") return "fail 9: ${enclosingClass.name}"
|
||||
|
||||
return "OK"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user