Support JVM 8 target on Android

This commit is contained in:
Mikhail Bogdanov
2020-04-14 14:25:14 +02:00
parent 284533f72b
commit dda2f53993
17 changed files with 51 additions and 8 deletions
+2 -1
View File
@@ -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"
}