Skip to content

Stability analysis incorrect for vararg parameters of composable functions #175

Description

@ArmureSolide
  • Library Version : 0.10.0

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
) {
    // ...
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions