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

An inline class implements an interface. What does the compiler generate at the call site shown, and why?

interface Printable { fun show(): String } @JvmInline value class Tag(val s: String) : Printable { override fun show() = s } val p: Printable = Tag("hi") val r = p.show()