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

For `class Container<T : Number>`, what is the projected element type when you read from a `Container<*>`?

class Container<T : Number>(private val value: T) { fun get(): T = value } fun read(c: Container<*>) { val x = c.get() // what is the type of x? }