(
val some: List<out Root> = when {
condition -> listOf(Root.A)
...
}
то идея пометит
out
и скажет, что corresponding type parameter has the same variance
Size: 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
выведется Root
AN
LS
AN
AN
LS
ТБ
AN
SB
AN
MK
AN
AO
AO
BP
ТБ
AO
ТБ