and `it::class.isInstance(value.type)` apparently ...
# announcements
d
and
it::class.isInstance(value.type)
apparently needs
kotlin-reflect
, which I don't want to draw in just for that purpose
...which is a pity, because the plain
is
operator obviously doesn't need
kotlin-reflect
either to work
but I guess this is compile-time magic
e
@dead.fish
it::class.isInstance(value)
doesn’t need reflection
d
But it tells me so:

https://puu.sh/zNKkW/429849655a.png

e
try without
type
in argument
d
well, that type is the instance of the thing I want to check 🙂
e
-