Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardKotlininline class boxing rulesSingle-choice MCQ

A value class member function `fun UserId.toTag(): String` is compiled. How does the Kotlin compiler name-mangle it and why, and how does this interact with boxing when called?

@JvmInline value class UserId(val raw: Long) { fun describe(): String = "id=$raw" }