mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
29 lines
681 B
Plaintext
29 lines
681 B
Plaintext
// "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)
|
|
}
|
|
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.migration.MigrateExternalExtensionFix |