// IGNORE_BACKEND: WASM // WASM_MUTE_REASON: IGNORED_IN_JS // IGNORE_BACKEND: JS_IR // IGNORE_BACKEND: JS_IR_ES6 // TODO: muted automatically, investigate should it be ran for JS or not // IGNORE_BACKEND: JS, NATIVE // WITH_RUNTIME object Obj { class Inner() { fun ok() = "OK" } } fun box() : String { val klass = Obj.Inner::class.java val cons = klass.getConstructors()!![0] val inner = cons.newInstance(*(arrayOfNulls(0) as Array)) return "OK" }