mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-17 00:21:28 +00:00
13 lines
244 B
Kotlin
13 lines
244 B
Kotlin
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(* Array(0){""})
|
|
return "OK"
|
|
}
|