https://kotlinlang.org logo
#ktor
Title
# ktor
l

LastExceed

07/02/2020, 11:41 AM
getting postA works fine, getting postB gives
java.lang.ClassCastException: class java.util.LinkedHashMap cannot be cast to class Post
. It seems T is getting erased despite being reified. why is that ?
👀 1
r

Rémy

07/02/2020, 11:42 AM
postB : return a List<Posts>
l

LastExceed

07/02/2020, 11:43 AM
that's not the point here.
s

spand

07/02/2020, 11:45 AM
l

LastExceed

07/02/2020, 11:52 AM
yep, that seems to be it. ty