Join Slack
Powered by
Generics q: is it possible to write the equivalent...
# announcements
g
grandstaish
09/08/2018, 4:42 PM
Generics q: is it possible to write the equivalent of the following line in kotlin?
https://github.com/square/moshi/blob/master/moshi/src/main/java/com/squareup/moshi/StandardJsonAdapters.java#L67
EnumJsonAdapter(rawType as Class<out Enum<*>>).nullSafe()
gives a type inference error because it can't figure out what
T
is.
Open in Slack
Previous
Next