damian
03/29/2016, 3:39 PMinline fun <reified T : Any> foo() {
println(T::class.java) // prints expected raw type
val token = object : TypeToken<T>() {}
println(token) // prints only `T`
}
I just started a new project using GSON and I can't get a TypeToken
as I have been able to in the past.