Fixed KT-15270 Quickfix to migrate from @native***

This commit is contained in:
qx
2017-05-03 17:32:35 +03:00
parent 11bc0d87b8
commit 8ba61ce7aa
22 changed files with 427 additions and 10 deletions
@@ -0,0 +1,25 @@
// "Fix with 'asDynamic'" "true"
// JS
external class B {
fun dontTouch(): 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)
}