// "Fix with 'asDynamic'" "true" // JS // ERROR: Declaration of such kind (extension function) cant be external external class B { fun dontTouch(): Nothing = definedExternally fun B.doNotTouchNestedExtensionMembers(): Nothing = definedExternally } @Suppress("NOTHING_TO_INLINE") inline fun B.foo(i: Int): B? = asDynamic()[i] @Suppress("NOTHING_TO_INLINE") inline fun B.foo(i: Int, v: B) { asDynamic()[i] = v } @Suppress("NOTHING_TO_INLINE") inline fun B.bar(a: B) { asDynamic()(a) } @Suppress("NOTHING_TO_INLINE") inline fun B.exp(t: T) { asDynamic()(t) }