because I don't have `SomeClass`, but only an inst...
# announcements
d
because I don't have
SomeClass
, but only an instance (actually an
object
) of that class
e
So you mean something like
object:SomeClass
? or something else?
d
yes
e
I don't think you need to own
SomeClass
in order to do
is SomeClass
, as long as you have that dependency in your project.
a
I think he meant he doesn't have the information at runtime, not that the class is one written by him
r
d
...which uses the big kotlin-reflect package 🙂
I settled down using
javaClass.isInstance()
for now, seemed easier for this single use case