Mikhail Vorobev
09/01/2026, 1:17 PMinline fun <explicit reified T> List<*>.castAll(): List<T>
val list: List<CharSequence> = listOf("a", "b", "c")
val ok = list.castAll<String>() // ok
val error: List<String> = list.castAll() // error: type argument required