Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardKotlinvalue class codegenSingle-choice MCQ

For an `@JvmInline value class` wrapping a `String`, when does the compiler keep the value unboxed versus when must it box into the wrapper type?

@JvmInline value class UserId(val raw: String) fun take(id: UserId) {} fun takeNullable(id: UserId?) {}