Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumKotlinstar projectionsSingle-choice MCQ

A `MutableList<*>` is a star-projection. Which statement correctly describes what the compiler infers for its members?

fun describe(list: MutableList<*>) { val first = list.first() // type of `first`? // list.add(?) // what can be added? }