We have a function like this in our codebase. In K...
# eap
z
We have a function like this in our codebase. In K2, the compiler warns
NOTHING_TO_INLINE
on this, but since it has function parameters this seems like a reasonable candidate. I wanted to check here if this is expected before filing a bug
Copy code
@Composable
inline fun <S> Transition<S>.animateColorList(
  targetColorListByState: @Composable (state: S) -> ImmutableList<Color>,
  label: String,
  noinline transitionSpec:
    @Composable
    Transition.Segment<ImmutableList<Color>>.() -> FiniteAnimationSpec<Color> =
    {
      spring()
    },
): State<ImmutableList<Color>> {
  val colorSpace = targetColorListByState(currentState).first().colorSpace
  val typeConverter = remember(colorSpace) { Color.VectorConverter(colorSpace) }
  return animateValueList(
    typeConverter = typeConverter,
    targetValueListByState = targetColorListByState,
    label = label,
    transitionSpec = transitionSpec,
  )
}
thank you color 1
youtrack 1
1
d
Yes, it's a bug Please report it
z