if not Double::class what should I be comparing it...
# announcements
x
if not Double::class what should I be comparing it to?
s
what’s the type of
returnType
?
x
KType
s
I haven’t worked with that type before but I know that comparison isn’t going to work since
Double::class
yields a
KClass<Double>
x
sure, I’m just not sure how I’m going to get a KType
s
if you’re in the weeds with reflection already, I think you might be able to use
Double::class.starProjectedType
lives under
kotlin.reflect.full
x
doesn’t look like it
guess maybe I should just use java’s reflection api
or something elses reflection utils
m
property.returnType.classifier == Double::class