https://kotlinlang.org logo
#eap
Title
# eap
a

Allan Wang

11/08/2018, 8:26 PM
If I have
inline class ShortUser(val value: String)
and
inline class User(val value: String)
, and I want to be able to pass
ShortUser
into methods that take in
User
, is the only way to pass in
User(shortUser.value)
? (Haven't actually tried this. Just reading the inline class docs, and it looks like there is no other way)
d

dmitry.petrov

11/09/2018, 4:08 PM
Yes. Just as with regular classes.