Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardKotlintype erasure on the JVMSingle-choice MCQ

Why does `star` below compile while `concrete` does not, and what JVM-level fact explains the difference?

fun star(x: Any) = x is List<*> // line A fun concrete(x: Any) = x is List<String> // line B