I’m working on converting some existing logic in J...
# getting-started
e
I’m working on converting some existing logic in Java into Kotlin and have this phrase that I’m stuck on:
if (prop.getValue() instanceof Object[])
, where the signature of
getValue()
is
java.lang.Object getValue()
. A naive
if(it.value is Array<Any?>)
tells me that I can’t check for “erased type Array<Any?>“. Could someone help me understand what I should be doing here?