mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-12 00:21:32 +00:00
13 lines
273 B
Kotlin
Vendored
13 lines
273 B
Kotlin
Vendored
object Obj {
|
|
class Inner() {
|
|
fun ok() = "OK"
|
|
}
|
|
}
|
|
|
|
fun box() : String {
|
|
val klass = Class.forName("Obj\$Inner")!!
|
|
val cons = klass.getConstructors()!![0]
|
|
val inner = cons.newInstance(*(arrayOfNulls<String>(0) as Array<String>))
|
|
return "OK"
|
|
}
|