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

What is the result and the reason for this code with a value class wrapping a reference type?

@JvmInline value class Name(val s: String) fun main() { val a: Name = Name("x") val b: Any = a println(a == b) }