Skip to content

Instantly share code, notes, and snippets.

@nosix nosix/after.kt
Created Sep 4, 2017

What would you like to do?
convert deprecated @nativeGetter/@nativeSetter to inline extension function
external interface MethodMap
inline operator fun MethodMap.get(propertyName: String): Function<Any>? = this.asDynamic()[propertyName]
inline operator fun MethodMap.set(propertyName: String, value: Function<Any>?) {
this.asDynamic()[propertyName] = value
external interface MethodMap {
operator fun get(propertyName: String): Function<Any>?
operator fun set(propertyName: String, value: Function<Any>)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.