Dalinar
06/27/2017, 6:02 PM@nativeGetter
operator fun get(key: String): String? // use inline extension with body using dynamic
companion object : QUnit by definedExternally: QUnit { } // can't use delegate on external
fun begin(callback: `(details: `T$3`) -> Unit`) // unresolvable reference details
code here gives errors or deprecated warningsbashor
06/27/2017, 6:04 PMbashor
06/27/2017, 6:07 PMbashor
06/27/2017, 6:07 PMfun begin(callback: (details: `T$3`) -> Unit)
bashor
06/27/2017, 6:08 PMDalinar
06/27/2017, 6:09 PMbashor
06/27/2017, 6:09 PMnativeGetter
should work, but deprecated, anyway in IDEA you can apply quickfix (alt+enter)bashor
06/27/2017, 6:10 PMDalinar
06/27/2017, 6:11 PMbashor
06/27/2017, 6:14 PMbashor
06/27/2017, 6:16 PMDalinar
06/27/2017, 7:50 PMexternal interface `T$1`
inline fun `T$1`.get(key: dynamic): String? {
}
bashor
06/27/2017, 8:06 PMbashor
06/27/2017, 8:07 PMbashor
06/27/2017, 8:10 PMexternal class A {
@nativeGetter
operator fun get(key: String): String?
}
After:
external class A {
}
@Suppress("NOTHING_TO_INLINE")
inline operator fun A.get(key: String): String? = asDynamic()[key]