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

For an inline value class wrapping a primitive, why does making the parameter nullable force boxing even though the underlying type is a non-null primitive?

@JvmInline value class Meters(val v: Int) fun f(m: Meters?) { }