(
val some: List<out Root> = when {
condition -> listOf(Root.A)
...
}то идея пометит
out и скажет, что corresponding type parameter has the same varianceSize: a a a
(
val some: List<out Root> = when {
condition -> listOf(Root.A)
...
}out и скажет, что corresponding type parameter has the same variance(
ТБ
when выводится out Root, если заменить на listOf выведется RootAN
LS
AN
AN
LS
ТБ
AN
SB
AN
MK
AN
AO
AO
BP
ТБ
AO
ТБ