Support reflection tests on Android
This commit is contained in:
@@ -1,9 +1,12 @@
|
||||
// TODO: Enable for JS when it supports Java class library.
|
||||
// TARGET_BACKEND: JVM
|
||||
|
||||
package test
|
||||
|
||||
class SomeClass { companion object }
|
||||
|
||||
fun box() =
|
||||
if ((SomeClass.toString() as java.lang.String).matches("SomeClass\\\$Companion@[0-9a-fA-F]+"))
|
||||
fun box() =
|
||||
if ((SomeClass.toString() as java.lang.String).matches("test.SomeClass\\\$Companion@[0-9a-fA-F]+"))
|
||||
"OK"
|
||||
else
|
||||
"Fail: $SomeClass"
|
||||
|
||||
Reference in New Issue
Block a user