blob: f70695d0d447409c10ab1fcc6d03dc96e8700c03 [file] [log] [blame]
// "Fix with 'asDynamic'" "true"
// JS
// ERROR: Declaration of such kind (extension function) can't 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<T> B.exp(t: T) {
asDynamic()(t)
}