Describe the Bug:
vararg keyword doesn't seem taken in account when analysing stability of a parameter.
This means we have this result :
@Composable
fun MyComponent(
vararg param: Int, // stable
modifier: Modifier = Modifier // stable
) {
// ...
}
Expected Behavior:
When in reality, varargs are compiled into an Array, meaning the stability should be the same as an array :
@Composable
fun MyComponentUsingArray(
param: Array<Int>, // runtime
modifier: Modifier = Modifier // stable
) {
// ...
}
@Composable
fun MyComponentUsingVarArg(
vararg param: Int, // runtime
modifier: Modifier = Modifier // stable
) {
// ...
}
Describe the Bug:
varargkeyword doesn't seem taken in account when analysing stability of a parameter.This means we have this result :
Expected Behavior:
When in reality, varargs are compiled into an Array, meaning the stability should be the same as an array :