How can I check if a `KProperty` is of type `Optio...
# announcements
r
How can I check if a
KProperty
is of type
Optional::class
? The debugger shows the value of
p.returnType.javaType
is a ParameterizedTypeImpl of
java.util.Optional<java.lang.String>
but I can seem to find the right equality expression without resorting to a string comparison.