https://kotlinlang.org logo
#announcements
Title
# announcements
q

quicksteve

01/02/2017, 4:42 PM
Hello, I'm currently trying to use GSON with delegated properties. It appears like the runtime type of the delegate is erased, for example, the delegate could be Lazy<Int>, but only Lazy is retained in the field info. I know this can easily be solved using e.g. declaredMemberProperties, which specifies the actual type instead of the delegate, but GSON doesn't know this exists. How can I make this work?
2 Views