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

Given a `Box<*>` (star projection), what are the inferred bounds for reading from and writing to its `T`-typed members?

class Box<T : Number>(var value: T) fun inspect(b: Box<*>) { val v = b.value // line R: what type is v? // b.value = ... // line W: what can be assigned? }