I asked about passing value classes to retrofit functions on SO a while back (
https://stackoverflow.com/questions/68232128/is-it-safe-to-pass-a-kotlin-inline-class-to-a-retrofit-function), and I want to verify that a few of my assumptions are correct here before updating SO:
1. Function mangling won't cause any issues because the call site will be updated to use the mangled function name
2. If the wrapped type is not boxed, a converter for the wrapped type will be used if one exists, otherwise
toString()
will be invoked on the wrapped type
3. If the wrapped type is boxed, a converter for the value type will be used if one exists, otherwise
toString()
will be invoked on the value type