Generics q: is it possible to write the equivalent...
# announcements
g
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.