Join Slack
Powered by
In the end I had to do: ```inline fun <reified ...
# klaxon
d
dave08
05/02/2018, 3:37 PM
In the end I had to do:
Copy code
inline fun <reified T: Any> Any.toJsonString() = klaxon.toJsonString(this as T)
And specify the reified type when calling... (even though I was expecting Kotlin to infer it from the surroundings...
Open in Slack
Previous
Next